Uploaded image for project: 'Reference Application'
  1. Reference Application
  2. RA-1678

Condition List: Problems with time zones

    XMLWordPrintable

Details

    • Undetermined

    Description

      There's an issue when setting the "onSet" date of a condition within the condition list depending on what time zone you are in.

      It looks like when setting the "onSet" date the client just sends the date component to the server.  The server, unfortunately, interprets that date as "GMT" instead of assuming that it's in it's local time, and therefore adjusts the time to match it's local time.

      For example, if the server is in UTC-5:00 and the REST post sends an onset date of "2010-01-05", the server converts that to "2002-01-05T19:00:00.000-05:00", when what we really want is "2010-01-05T00:00:00-05:00".

      To reproduce, if you are in any "UTC negative" time zone and enter an onset date, note that when you reload the form, the onset date is set back to the previous day.

      (I'm not quite sure what the proper fix is here)

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                mseaton Mike Seaton
                mogoodrich Mark Goodrich
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: