Jump to content

can someone fix this


ankycooper

Recommended Posts

Unless you provide a timestamp as the second parameter, date() will revert to time(), which is the current local time - in other words, the current local time [i]of the web server[/i]. If you want the time to be in IST you need to provide the timestamp with the appropriate offset.

I'm not familar with the IST timezone, but if IST is, for example, 5 hours ahead of GMT you could use this:

$today = date("F j, Y, g:i a",(time()+60*60*5));
Link to comment
https://forums.phpfreaks.com/topic/29020-can-someone-fix-this/#findComment-132976
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.