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

fix(datetime): fix dayOfYear when the timezone has DST #3668

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

kt3k
Copy link
Member

@kt3k kt3k commented Sep 22, 2023

dayOfYear result looks wrong when the timezone has the daylight saving time, and the start of year and the given date have different timezone offsets.

This PR fixes the issue by adjusting the diff calculation using timezone offset values.

closes #3659
closes #3571

Copy link
Contributor

@lino-levan lino-levan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks! Great that we got this in CI.

@kt3k kt3k merged commit c5515cd into denoland:main Sep 26, 2023
9 checks passed
@kt3k kt3k deleted the fix-day-of-year branch September 26, 2023 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dayOfYear test fails on my machine A fresh checkout results in failing tests?
3 participants