date-fns parseJSON adds timezone offset in a non-UTC date

Viewed 8

The problem is that the JSON time is missing the Z in the end which means it should be treated as a local time without any offset added/substracted.

My JSON field item.tstamp is : "2022-09-23T06:00:00.877"

My format statement is: format(parseJSON(item.tstamp), 'E dd/LL/yyyy - HH:mm')

The result is that i get +3 hours of my timezone added which is a mistake.

The result: Fri 23/09/2022 - 09:00

What am i missing?

0 Answers
Related