Skip to content

fix(api): preserve modified date in R2 progression#2352

Merged
gotson merged 1 commit into
gotson:masterfrom
Mister-album:fix/progression-modified-instant
Jul 20, 2026
Merged

fix(api): preserve modified date in R2 progression#2352
gotson merged 1 commit into
gotson:masterfrom
Mister-album:fix/progression-modified-instant

Conversation

@Mister-album

Copy link
Copy Markdown
Contributor

ReadProgressDao converts READ_DATE from UTC to the server local time when loading a progression. R2Progression then passed that local value to toZonedDateTime(), which treats it as UTC and shifts the returned modified instant by the server local UTC offset.

Use toUTCZoned() so GET /progression preserves the instant submitted by the client. This fixes incorrect modified timestamps in non-UTC server timezones without changing stored READ_DATE values.

ReadProgressDao converts READ_DATE from UTC to the server local time when loading a progression. R2Progression then passed that local value to toZonedDateTime(), which treats it as UTC and shifts the returned modified instant by the server local UTC offset.

Use toUTCZoned() so GET /progression preserves the instant submitted by the client. This fixes incorrect modified timestamps in non-UTC server timezones without changing stored READ_DATE values.
@gotson

gotson commented Jul 20, 2026

Copy link
Copy Markdown
Owner

thanks!

@gotson
gotson merged commit a1ee74d into gotson:master Jul 20, 2026
4 checks passed
@gotson gotson changed the title fix(progression): preserve modified instant fix(api): preserve modified date in R2 progression Jul 20, 2026
@Mister-album
Mister-album deleted the fix/progression-modified-instant branch July 20, 2026 03:19
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