Jump to content

changing time zone !!


hassank1

Recommended Posts

couple ways,

 

1 set the timezone (assuming PHP 5) - see http://us3.php.net/manual/en/function.time.php for instructions

 

2: create a function to alter the time before being displayed to sync up with the timezone you want to use,

 

which can be scaled into a user selectable timezone

 

3: adjust the time before putting into your DB, which means not using now() statements but now() + INTERVAL X HOURS

 

or something along those lines

 

hope this helps

Link to comment
https://forums.phpfreaks.com/topic/100835-changing-time-zone/#findComment-515633
Share on other sites

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.