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

Strange behaviour with dates between 1969 to 1971 #2817

Open
MattStantonMBS opened this issue Jan 21, 2025 · 0 comments
Open

Strange behaviour with dates between 1969 to 1971 #2817

MattStantonMBS opened this issue Jan 21, 2025 · 0 comments

Comments

@MattStantonMBS
Copy link

MattStantonMBS commented Jan 21, 2025

Describe the bug
When using dates in the years 1969, 1970 and 1971, using operations like "startOf" results in times from other days
i.e. dayjs('1970-01-07T01:00:00').startOf('day') will result in "Tue, 06 Jan 1970 23:00:00 GMT". Years before and after these 3 years do not show the same problem

Expected behavior
dayjs('1970-01-07T01:00:00').startOf('day') should display "Weds, 07 Jan 1970 00:00:00 GMT"

Information

  • Day.js Version: 1.11.0
  • OS: iOS
  • Browser: chrome 131.0.6778.265
  • Time zone: GMT
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