Date warning - need timezone

Project:RUetd
Version:2.2.2
Component:Code
Category:bug report
Priority:normal
Assigned:chadmills
Status:closed
Description

<a href="http://dev-etd.libraries.rutgers.edu/gs/index.php" title="http://dev-etd.libraries.rutgers.edu/gs/index.php">http://dev-etd.libraries.rutgers.edu/gs/index.php</a>
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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/local/apache2/htdocs/etd_dev/ruetd/gs/index.php on line 5

Comments

#1

Couldn't replicate.

#2

Another entry needing a timezone.

<a href="http://dev-etd.libraries.rutgers.edu/index.php?view=xml_export" title="http://dev-etd.libraries.rutgers.edu/index.php?view=xml_export">http://dev-etd.libraries.rutgers.edu/index.php?view=xml_export</a>
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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/local/apache2/htdocs/etd_dev/ruetd/library/export_functions.php on line 833
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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/local/apache2/htdocs/etd_dev/ruetd/library/export_functions.php on line 834

#3

And another...

<a href="http://dev-etd.libraries.rutgers.edu/login.php" title="http://dev-etd.libraries.rutgers.edu/login.php">http://dev-etd.libraries.rutgers.edu/login.php</a>
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 the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /usr/local/apache2/htdocs/etd_dev/ruetd/login.php on line 168

#4

Status:active» test

Added the following to the main ./library/config.php file

//SET DEFAULT TIMEZONE FOR USE IN SCRIPT
date_default_timezone_set('America/New_York');

Test by visiting those pages an referring to the php_error log and confirm no errors are thrown.

#5

Status:test» closed

Back to top