note 94184 added to function.strtotime
| From: | kooshal at live dot com | Date: | Wed, 21 Oct 2009 13:59:54 +0000 |
| Subject: | note 94184 added to function.strtotime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-161942@lists.php.net to get a copy of this message | ||
when using PHP 5.3, you must use date_default_timezone_set() to set the time zone otherwise you will
get warning similar to this (if you have display_errors=On)â
Warning: date() [function.date]: It is not safe to rely on the system's timezone settings. You
are *required* to use the date.timezone setting 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 'Asia/Dubai' for '4.0/no DST' instead in
path/to/php/script.php
on line ##
Example:
date_default_timezone_set('Indian/Mauritius');
For a list of supported timezones in PHP, see http://www.php.net/manual/en/timezones.php
----
Server IP: 69.147.83.197
Probable Submitter: 196.20.162.147
----
Manual Page -- http://www.php.net/manual/en/function.strtotime.php
Edit -- https://master.php.net/note/edit/94184
Del: integrated -- https://master.php.net/note/delete/94184/integrated
Del: useless -- https://master.php.net/note/delete/94184/useless
Del: bad code -- https://master.php.net/note/delete/94184/bad+code
Del: spam -- https://master.php.net/note/delete/94184/spam
Del: non-english -- https://master.php.net/note/delete/94184/non-english
Del: in docs -- https://master.php.net/note/delete/94184/in+docs
Del: other reasons-- https://master.php.net/note/delete/94184
Reject -- https://master.php.net/note/reject/94184
Search -- https://master.php.net/manage/user-notes.php