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: update year formatting from week year to calendar year #1364

Merged
merged 4 commits into from
Sep 13, 2022

Conversation

ericenns
Copy link
Member

@ericenns ericenns commented Sep 12, 2022

Description of changes

YYYY year format is actually week year which results in the incorrect calendar year being shown.

i.e. date is December 31, 2021, when using YYYY year is displayed as 2022 instead of 2021.

This is due to the last day of that week being in 2022. (i.e. January 1, 2022 is Saturday which is the last day of that week).

Related issue

Link to the GitHub issue this pull request addresses using the #issuenum format. If it completes an issue, use Fixes #issuenum to automatically close the issue.

Checklist

Things for the developer to confirm they've done before the PR should be accepted:

  • CHANGELOG.md (and UPGRADING.md if necessary) updated with information for new change.
  • Tests added (or description of how to test) for any new features.
    * [ ] User documentation updated for UI or technical changes.

@ericenns ericenns marked this pull request as ready for review September 12, 2022 16:27
Copy link
Contributor

@joshsadam joshsadam left a comment

Choose a reason for hiding this comment

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

This looks good to me

@joshsadam joshsadam merged commit 4de7c11 into development Sep 13, 2022
@joshsadam joshsadam deleted the fix-year-format branch September 13, 2022 16:33
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

Successfully merging this pull request may close these issues.

2 participants