Edit report at http://bugs.php.net/bug.php?id=52633&edit=1
ID: 52633 Updated by: ahar...@php.net Reported by: avani at aspl dot in Summary: Date() / mktime() function were generating error .. -Status: Open +Status: Bogus Type: Bug -Package: *General Issues +Package: Date/time related Operating System: FC11 PHP Version: 5.3.3 Block user comment: N New Comment: This isn't a bug: the error message explains exactly what's happening and what you need to do to fix it. Please follow it up with a support channel if you're still unclear on the problem. Previous Comments: ------------------------------------------------------------------------ [2010-08-18 10:53:09] avani at aspl dot in 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 ------------------------------------------------------------------------ [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