speedy33417 Posted October 17, 2006 Share Posted October 17, 2006 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.