Skip to content

fix: dateToYYYYMMDD used UTC conversion, shifting dates back a day fo…#1280

Merged
rolandgeider merged 4 commits into
wger-project:masterfrom
AaryanPuri:fix/date-to-yyyymmdd-timezone
Jul 24, 2026
Merged

fix: dateToYYYYMMDD used UTC conversion, shifting dates back a day fo…#1280
rolandgeider merged 4 commits into
wger-project:masterfrom
AaryanPuri:fix/date-to-yyyymmdd-timezone

Conversation

@AaryanPuri

Copy link
Copy Markdown
Contributor

toISOString() converts to UTC, shifting dates back a day for timezones ahead of UTC. Switched to local date components.

Fixes #1279

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Status

coverage: 78.412% (+0.007%) from 78.405% — AaryanPuri:fix/date-to-yyyymmdd-timezone into wger-project:master

@rolandgeider

Copy link
Copy Markdown
Member

I've used this opportunity to do a more general sweep of timezone handling in this repo, hopefully we can finally get rid of all these inconsistencies

@rolandgeider
rolandgeider merged commit af124ae into wger-project:master Jul 24, 2026
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.

dateToYYYYMMDD shifts dates back a day for timezones ahead of UTC Set timezone Incorrect date displayed in Weight Overview

3 participants