I am creating a script that allows the user to select their time zone ...
If I have to do this work, how do I store dates in a database so that each time zone reads it and shows the correct date in its time zone?
I save the date as GMT, and then when a user with the selected time zone GMT +10 looks at an element in my script, do I show this date in GMT +10 times?
Is there a better way to do this?
Examples would be great :)
timezone php
Ben sinclair
source share