Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kealjones-wk opened this issue Mar 26, 2024 · 0 comments
Open

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

kealjones-wk opened this issue Mar 26, 2024 · 0 comments

Comments

@kealjones-wk
Copy link

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant