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

Condition List: Problems with time zones



    • Bug
    • Status: Ready for Work
    • TBD
    • Resolution: Unresolved
    • Reference Application 2.10.0
    • None
    • None
    • Undetermined


      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


          1. conditionstable.PNG
            63 kB
            Reagan patrick Makoba
          2. timezone1.PNG
            43 kB
            Reagan patrick Makoba
          3. timezone2.PNG
            76 kB
            Reagan patrick Makoba
          4. timezone3AllDatesOffsetToPreviousDayWhenInNegativeTimezones.PNG
            52 kB
            Reagan patrick Makoba
          5. timezone4AllDatesOffsetToPreviousDayWhenInNegativeTimezones.PNG
            30 kB
            Reagan patrick Makoba

          Issue Links



                Unassigned Unassigned
                mogoodrich Mark Goodrich
                0 Vote for this issue
                7 Start watching this issue