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
Best would be to fix such that backend always sends the same but this is an alternative solution
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
Best would be to fix such that backend always sends the same but this is an alternative solution