This topic is locked

Timezone Issue

7/2/2006 4:47:13 PM
PHPRunner General questions
M
mfred author

I am getting the following error with redate to a date field:

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. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead

URL www.thetejasclub.com/site/booking/_Booking_add.php?

Error file /home/r1762318/public_html/site/booking/include/locale.php

Error line 258
Line 258 is $now=localtime(time(),1);
Your answes the previous posts says to edit the php.ini. However, that fiz is dependent upon having access to the server where this file resides. I host my website with a hosting company so I cannot edit the php.ini. Is the any alteration to line 258 which can fix this problem?

Alexey admin 7/3/2006

Hi,
this message means that PHP at your hosting is underconfigured.

Contact your hosting admin to fix this.
To prevent the error message from being displayed try to modify the line this way:

$now=@localtime(time(),1);