Should I store all the timelines in the MySQL database in UTC?
(Using UTC_TIMESTAMP ())
How can I be displayed periodically in user's time zone, if I do not know the user's timezone?
Using UTC is usually a good bet, especially if you use logical "instant in time" ( Such as timestamps for creating entries etc.).
How do you display your user for this: If you know the time zone, you can not make the user date / time wisely though , so it UTC's decision is really different from an alternative to switching from UTC to local time may be to use Javascript. Another possibility is that allow users to specify time zone themselves.
Comments
Post a Comment