Community Support for OpenDocMan (Deprecated)
php warning on time zone (scrolling errors) - Printable Version

+- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com)
+-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html)
+--- Forum: OpenDocMan Support - Community Based (https://forum.opendocman.com/forum-6.html)
+--- Thread: php warning on time zone (scrolling errors) (/thread-482.html)



php warning on time zone (scrolling errors) - arnwa01 - 01-19-2012

What do I need to modify in my opendocman setup to get rid of the following error messages:


[Thu Jan 19 10:09:56 2012] [error] [client 24.xx.xx.xx :!: ] PHP Warning: 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 'America/Chicago' for 'CST/-6.0/no DST' instead in /var/www/html/functions.php on line 56, referer: <!-- m --><a class="postlink" href="http://opendoc1.domain.com/out.php">http://opendoc1.domain.com/out.php</a><!-- m -->


Re: php warning on time zone (scrolling errors) - Stephen - 01-20-2012

I think you can either update your php.ini to contain date.timezone settings, or add date_default_timezone_set() before that line to manually set the date. Let me know if this fixes it.