Jump to content


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


date/timezone issue

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...

Share this post

Link to post
Share on other sites


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.