Time Zones for different users

Posted by Ben Sinclair on Stack Overflow See other posts from Stack Overflow or by Ben Sinclair
Published on 2010-03-24T23:39:50Z Indexed on 2010/03/24 23:43 UTC
Read the original article Hit count: 430

Filed under:
|

I am creating a script that allows the user to choose their own timezone...

If I am to make this work, how do I store dates in the database so that every timezone will read it, and show the correct date in their timezone?

Do I store the date as GMT and then when a user with the timezone GMT +10 selected views the item within my script, I show that date in GMT +10 time?

Is there a better way to do this?

Examples would be great :)

© Stack Overflow or respective owner

Related posts about php

Related posts about timezone