MyBB Community Forums

Full Version: Saving timestamps and timezones
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm developing a calendar plugin that relies heavily on dates and times, and will be used by many people in different timezones.

What is the best way to approach timezones? Should I allow users to specify the start date for a calendar event and a timezone, or should I inherit the timezone from their user account and store it with the event?

Should I output the event dates/times in their original timezones and display the timezone, only in their local timezone or both? I'm thinking both, so that they can plan better.

I'm thinking the basic question I'm asking is: should timezones be relative to the current user (so inherit) or absolute (they can specify)?
Any help here? I'd really like to launch my plugin but this is the only thing holding it back.
dates should be displayed in local (user) time, but stored as GMT.