This topic is locked

localtime error type: 2048

7/18/2006 6:14:08 PM
PHPRunner General questions
T
trumpet author

Hi. I'm new to phpRunner. I've used ASPRunner for while though. I'm running into an issue with a timedatestamp and the program.
I receive the following error:

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 'America/Los_Angeles' for 'PDT/-7.0/DST' instead


I building upon and existing database and the field in question is a timestamp datatype. Any guidance to work around this issue is appreciated.
Thanks.

Trumpet

<img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=question&id=3024&image=1&table=forumtopics' class='bbc_emoticon' alt=';)' />

T
trumpet author 7/18/2006

One more thing...
I've read the other posts.

  1. I don't have access to the php.ini file. Before we contact our hosting provider, is this a global setting for all sites on their server. Or would it just affect ours?
  2. I tried the alternative in the locale.php file (i.e. $now=localtime(date('Y-m-d H:i:s')); ) ... didn't work either!
    HELP! Can I just hard code the local time somehow?
    Thanks, again.

    Trumpet
    Hi. I'm new to phpRunner. I've used ASPRunner for while though. I'm running into an issue with a timedatestamp and the program.

    I receive the following error:
    I building upon and existing database and the field in question is a timestamp datatype. Any guidance to work around this issue is appreciated.
    Thanks.

    Trumpet

    <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=9903&image=1&table=forumreplies' class='bbc_emoticon' alt=';)' />

Alexey admin 7/19/2006

Hi,
you can modify generated files instead of php.ini to get rid of this error.

Insert this line in the beginning of include\dbcommon.php file just after <?php line.

date_default_timezone_set('America/Los_Angeles');