This topic is locked

Date error in 3.0 Beta

12/30/2005 9:05:41 AM
PHPRunner General questions
prleo1 author

Admin,
I am receiving the following error on all of my date columns after generating a test project using the PHPRunner 3.0 beta.

"Error type 2048

Error description localtime() [function.localtime]: 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. We selected 'America/New_York' for '-5.0/no DST' instead "

N
ndelisle 1/1/2006

I got the same error message using MSSQL DB. On the off chance, I tried date.timezone instead of localtime, but the arguments were all wrong. Any suggestions?

Sergey Kornilov admin 1/4/2006

Hi,
PHP 5.1 and later needs date.timezone configuration option to be set in php.ini file.

Please open C:\Windows\php.ini file with a text editor and insert the following line there:

date.timezone = "'America/New_York"



Then restart you webserver.
The full list of supported timezones can be found at:

http://www.php.net/manual/en/timezones.php