Open valentin78 opened 2 hours ago
Getting issue with parse datetime created small unit test to show the issue
const ds = '2024-11-18T02:04:48.19'; expect(dayjs(ds).valueOf()).toEqual(new Date(ds).valueOf()); // error: Expected 1731913488019 to equal 1731913488190.
PS it works if I parse '2024-11-18T02:04:48.19Z' (i.e. UTC), but fails if local time (w/o timezone)
Getting issue with parse datetime created small unit test to show the issue