Open shadowempire123 opened 2 years ago
and time is offset 2 hours...
Z means UTC time.
I'm assuming you were locally UTC+2 when you made this issue? In that case the behaviour is correct - 2022-08-31T22:00:00.000Z is equivalent to 2022-09-01T00:00:000+02:00.
fixed it with:
$: selected2 = dayjs(selected2).add(1, 'day').toString() // fix 1 day offset