vani sri Posted July 14, 2008 Share Posted July 14, 2008 Hi all, I am using PHP 5.2.5 version. In date format it shows following error. Warning: 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 'CDT/-5.0/DST' In PHP 4.4.4 version no warning. Why this warning message occurs???? Pls anyone help me. Regards, vani Link to comment https://forums.phpfreaks.com/topic/114619-warning-message/ Share on other sites More sharing options...
Bendude14 Posted July 14, 2008 Share Posted July 14, 2008 check out the manual http://au2.php.net/date Could be you now have to set a default time stamp <?php date_default_timezone_set('UTC'); ?> Link to comment https://forums.phpfreaks.com/topic/114619-warning-message/#findComment-589326 Share on other sites More sharing options...
vani sri Posted July 15, 2008 Author Share Posted July 15, 2008 Hi Bendude14, Thanks for your reply. I got the output. Regards, vani Link to comment https://forums.phpfreaks.com/topic/114619-warning-message/#findComment-590159 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.