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

Wrong week shown at end of year #1031

Open
kusalananda opened this issue Dec 30, 2024 · 0 comments
Open

Wrong week shown at end of year #1031

kusalananda opened this issue Dec 30, 2024 · 0 comments
Labels
bug Something isn't working frontend This is likely affecting the frontend medium

Comments

@kusalananda
Copy link
Member

kusalananda commented Dec 30, 2024

Describe the bug

During the last few days of 2024, the 30th and 31st of December, it was week 1. Urdr, therefore, showed week 1 of 2024, i.e., the week starting on the 1st of January 2024, rather than the correct week starting on the 30th of December 2024. This could potentially cause invalid user input or removal of data.

Steps to reproduce

Visit the Urdr web application on the 30th or 31st of December 2024.

Screenshots

Wrong week shown by default:
Wrong week

Correct week is accessible by typing in the correct URL manually, or by using the date-picker:
Correct week

Probable Cause

It might be that the redirect to the week view is where the math goes wrong.

@kusalananda kusalananda added bug Something isn't working frontend This is likely affecting the frontend labels Dec 30, 2024
@viklund viklund added this to the Urdr Spring 2025 milestone Jan 13, 2025
@viklund viklund added the medium label Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend This is likely affecting the frontend medium
Projects
None yet
Development

No branches or pull requests

2 participants