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(photo): combination of week number and year being wrong #1967

Conversation

tomudding
Copy link
Member

Description

Week number is based on ISO 8601, which allows January 1 to fall on Mon-Thu for that week to be the first week of the year. However, we cannot get the year from the date itself, because if (for example for this year) that date still falls in December the year is one year too low.

Related issues/external references

Fixes GH-1966.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation improvement (no changes to code)
  • Other (please specify)

Week number is based on ISO 8601, which allows January 1 to fall on Mon-Thu for
that week to be the first week of the year. However, we cannot get the year from
the date itself, because if (for example for this year) that date still falls in
December the year is one year too low.
@tomudding tomudding merged commit c46ec5b into GEWIS:main Jan 9, 2025
4 checks passed
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.

Photo of the week gives wrong year
1 participant