Jump to content

Current time isn't displaying the correct hour.


D.Rattansingh

Recommended Posts

If you have PHP5 you should get prompted to set the date_default_timezone_set in any script that runs a date function.  Of course, this is if you have error_reporting and display_errors turned on in your development enviroment.

To repeat, your timezone setting is off, you can fix it by date_default_timezone_set.

 

functions: Runtime

date_default_timezone_set  EX. date_default_timezone_set('America/New_York');

ini_set  EX ini_set('date.timezone','America/New_York');

 

OR, it can be set in the php.ini.

  • 3 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.