dayjs icon indicating copy to clipboard operation
dayjs copied to clipboard

Dates less than 1883-11-19 are given a time?

Open kealjones-wk opened this issue 10 months ago • 0 comments

Describe the bug A clear and concise description of what the bug is.

If you construct a dayjs object using a string of anything LESS THAN 1883-11-18 12:00:00, meaning 1883-11-18 11:59:59 and below the object will have an unexpected time often being 27:18, see: Screenshot 2024-03-25 at 10 02 15 PM

It seems like this could be due to a significant historical event... see: https://chicagology.com/transportation/timeconvention/#:~:text=At%2012%20o%E2%80%99clock%20noon%20yesterday

but it kinda also seems like its happening when it shouldn't (like with UTC time) see: https://codesandbox.io/p/sandbox/dayjs-parse-utc-forked-ltsyjn

Expected behavior A clear and concise description of what you expected to happen. Time In = Time Out (obviously unless the timezone changes or something.

Information

  • Day.js Version: 1.11.10
  • OS: macOS 14.4 (23E214)
  • Browser: Chrome 123.0.6312.59
  • Time zone: Phoenix, its MST, but we don't observe Daylight Saving TIme.

kealjones-wk avatar Mar 26 '24 05:03 kealjones-wk