Jump to content

date/timezone issue


speedy33417

Recommended Posts

I'm working on a function that processes $time_gmt and $timezone and returns $time.
$time_gmt is true GMT time and the value of $timezone can be "GMT", "EST", "CET", etc. and is user selected upon registration and stored in a db.
$time is $time_gmt in the user's selected time zone.

My question is how do I generate a true GMT time?

[code]echo gmdate('l, Y F j, H:i:s \G\M\T', time());[/code]

It gives me 16:28, but it's 17:28 in London now...
Link to comment
https://forums.phpfreaks.com/topic/24231-datetimezone-issue/
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.