Skip to content
TylerSheffels edited this page May 28, 2015 · 2 revisions

How are we handling dates and times?

Poorly. Going forward try to store times as UTC, and then convert to EST/EDT right before showing to the user.

When saving datetimes using autoform, use: {{> afQuickField name="eventDate" type="datetime-local"}}

Omitting the timezoneId="America/New_York" uses the users local timezone. Currently I am going to assume everything is east coast. Going forward if we need to add timezone's we should add a user timezone to the user object and adjust times using moment.tz()

Resources:

http://stackoverflow.com/questions/2532729/daylight-saving-time-and-time-zone-best-practices

http://momentjs.com/timezone/

Clone this wiki locally