Dealing with timezones

Discussion in 'PHP' started by Triexa, Apr 25, 2007.

  1. #1
    I searched the board but couldn't find anything that was useful...

    I want to have my users be able to pick their timezone (in essence) and then have all times properly formatted.

    I was thinking of a dropdown to pick their CURRENT TIME (based on incrementing/decrementing hours from the server's time)

    So if the server time was midnight and they picked their time was 3am... I would just add 3 hours to all my timestamps for output.

    This doesn't handle daylight savings time though, does it?

    Is this a good/the best way to do it? How else could/should I do it?
     
    Triexa, Apr 25, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #2
    krakjoe, Apr 26, 2007 IP
  3. Triexa

    Triexa Active Member

    Messages:
    580
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #3
    Triexa, Apr 26, 2007 IP