Repository navigation
Timelines and reports: period and dates in the browser's time zone (#323) - #354
Merged
Merged
Conversation
The period of a timeline ("When") was formatted in UTC, so it started
a day early east of UTC and ended a day late west of it. Report and
timeline dates were grouped in the user's Nextcloud time zone, which
falls back to UTC when it isn't set, while the browser sends its own
day boundaries.
- Reports, Timelines and the Dashboard send the browser's time zone
("timezone", e.g. Europe/Berlin); report grouping and the timeline
period use it. Without it (older clients) the user's Nextcloud
setting applies.
- Timeline entries store the period's label ("2026-11-17", "2026W47")
or the date of the earliest entry, instead of its raw start
timestamp, which the CSV export showed as a number.
Existing timelines keep their stored text.
Fixes #323 (together with #352 for the "to" date)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Nov 22, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes #323, together with #352.
Problem (first part of #323)
Found along the way
Timeline entries stored a Unix timestamp as their "Time Interval": the earliest entry's start, e.g.
1794987000. The timeline CSV export showed these numbers. This has been the case since before the recent refactorings (the old SQL version also selectedstart as time).Fix
timezone(e.g.Europe/Berlin, fromIntl.DateTimeFormat()) with the report request.requestTimeZone()) for report grouping and for the timeline period. Without it (older clients such as the Android app), the user's Nextcloud setting applies, as before. An invalid name falls back the same way.2026-11-17,2026W47, …), or the date of the earliest entry when not grouped by time.Testing
New integration test
TimelinePeriodTest:Against fix: include the whole "to" day in dashboard, reports and timelines #352 without this fix, three of them fail exactly as reported: October 31, November 19, and the entry under 2026-11-18 instead of 2026-11-17.
All 48 integration tests and the unit tests pass; phpstan is clean; the build has no warnings.
Browser (time zone Europe/Berlin):
timezone: "Europe/Berlin";Fixes #323
🤖 Generated with Claude Code