Jump to content


Photo

date/timezone issue


  • Please log in to reply
No replies to this topic

#1 speedy33417

speedy33417
  • Members
  • PipPipPip
  • Advanced Member
  • 80 posts

Posted 17 October 2006 - 04:32 PM

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?

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

It gives me 16:28, but it's 17:28 in London now...





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users