Repository navigation
fix: group calendar time periods by UTC date - #96
Merged
hrodmn merged 2 commits intoNov 18, 2026
Merged
Conversation
DuckDB returns timestamptz columns in the session time zone, which defaults to the system's. The day, week, month, year and fixed-day groupers sliced the date off that string, so on a non-UTC machine items were grouped by local date while each step's rustac filter still selected a UTC day. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
hrodmn
force-pushed
the
fix/utc-calendar-grouping
branch
from
November 18, 2026 02:18
2bcb6c1 to
12aa486
Compare
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.
DuckDB returns
timestamptzcolumns in the session time zone, which defaults to the system's._build_time_stepshands those local timestamps to the groupers, and the day, week, month, year and fixed-day groupers slice the date straight off the string. On a non-UTC machine, items are grouped by their local date, but each step'sdatetime_filterstill selects a UTC day in rustac. So an item whose local date differs from its UTC date ends up in the wrong step and then isn't read at all.This parses the timestamp and takes its UTC date, as the exact and hourly groupers already do. Bare
YYYY-MM-DDdates are unchanged.To reproduce, on a machine in
Australia/Sydney(or afterSET TimeZone = 'Australia/Sydney'on the client), open two items either side of UTC midnight:We hit this on Geoscience Australia devboxes, which run in Canberra time. Landsat and Sentinel-2 pass over eastern Australia at around 00:00 UTC, so a large share of scenes went missing locally while the same code was fine on our UTC cluster.
🤖 Generated with Claude Code