equinor / flotilla

Flotilla is the main point of access for operators to interact with multiple robots in a facility.
Eclipse Public License 2.0
16 stars 35 forks source link

Fix mix between UTC and local time #1553

Closed Eddasol closed 5 months ago

Eddasol commented 5 months ago

Time varies between having a z at the and not having it. If there is a z, typescript will assume that the time is given as UTCtime and if not it will assume that its local time

Console log of time values and corresponding new Date(). Note the marked time and the corresponding time on the line above image

Best would be to fix such that backend always sends the same but this is an alternative solution