Bug #52633 [Opn]: Date() / mktime() function were generating error ..
| From: | avani at aspl dot in | Date: | Wed, 18 Aug 2010 08:53:09 +0000 |
| Subject: | Bug #52633 [Opn]: Date() / mktime() function were generating error .. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-153549@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52633&edit=1
ID: 52633
User updated by: avani at aspl dot in
Reported by: avani at aspl dot in
-Summary: this function was generating error ..
+Summary: Date() / mktime() function were generating error ..
Status: Open
Type: Bug
Package: *General Issues
Operating System: FC11
PHP Version: 5.3.3
Block user comment: N
New Comment:
mktime() [function.mktime]: 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/Calcutta' for
'IST/5.0/no DST' instead in /PATH/nf_statCounter.inc on line 21
Previous Comments:
------------------------------------------------------------------------
[2010-08-18 10:51:28] avani at aspl dot in
Description:
------------
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/Calcutta' for
'IST/5.0/no DST' instead in /PATH/nf_common.inc on line 162
Test script:
---------------
<?php
echo $c=date('Y');
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52633&edit=1