You are reading a single comment by @bq and its replies. Click here to read the full conversation.
  • So if you do the BST > UTC calculation in the client and store that the result is the same. As long as you tell the constructor you are passing in UTC.

    See http:/jsfiddle.net/aLd28fas/18/

    There are UTC analogues of everything if you need them.

    I'd do it like:
    To store: user enters event date and time. JS assumes locale time is being specified, and uses standard constructor to create date object. Pass into server as UTC using UTC output methods to format as required.
    To display: server passes back UTC, JS uses UTC constructor to create date object, displays dates using normal output methods to show correct local times. At no point have you needed to care about DST.

About

Avatar for bq @bq started