Error message [function.date]

Philechollen

Avatar: Philechollen

2015-11-02 06:35

Hi,

I have some error message in my website:

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in /home2/priyanto/public_html/mywebsite.com/core/common.php on line 98

Strict Standards: date() [function.date]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in /home2/priyanto/public_html/mywebsite.com/core/common.php on line 98

Strict Standards: header() [function.header]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CST/-6.0/no DST' instead in /home2/priyanto/public_html/mywebsite.com/core/common-admin.php on line 153

Warning: Cannot modify header information - headers already sent by (output started at /home2/priyanto/public_html/mywebsite.com/core/common.php:98) in /home2/priyanto/public_html/mywebsite.com/core/common-admin.php on line 153


What should I do?
Could anyone help me?


Thanks

» Quick.Cart v6.x

Roni

Avatar: Roni

2015-11-02 08:10

It was here few times (search function is available on this forum) but in short:

Add in .htaccess file:
php_value date.timezone "America/Chicago"

Here you will find proper timezones:
http://pl.php.net/manual/en/timezones.php

It should work in most times, if not ask again.

Back to top
about us | contact