You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bucket in-memory (JS), uniformly; do not emit dialect-specific date_trunc … AT TIME ZONE. SQLite has no tz database and MySQL needs tz tables loaded → splitting by dialect produces different bucket boundaries for the same data (a correctness landmine the sqlite-heavy test matrix wouldn't catch).
Scope
Swap getUTC* for the shared partsInTz util (from slice 3) in:
Feed the reference tz through the dataset query — the seam already exists (hard-coded 'UTC'): packages/services/service-analytics/src/dataset-executor.ts:264 and :317.
Keep the DB-side UTC fast path when reference tz is unset or 'UTC'; still push the date-range filter to the DB, only bucket in memory when tz ≠ UTC — objectql-strategy.ts:29-52.
Acceptance criteria
Day/week/month/quarter buckets align to the reference tz, identically on SQLite and Postgres.
tz unset / 'UTC' → DB-side fast path, behavior unchanged.
Test: a row near a tz day-boundary lands in the correct bucket under a non-UTC reference tz.
Depends on
Slices 1 (timezone) and 3 (shared partsInTz util).
Activity
feat(runtime): resolve a reference timezone onto ExecutionContext (#1993
feat(analytics): timezone-aware date bucketing (ADR-0053 Phase 2, #1982…
feat(settings): localization settings — platform timezone/language/fo…
fix(analytics): make organization timezone drive date-dimension bucke…
feat(dogfood): add in-process runtime regression gate (#2020)
feat(spec): govern dataset + bind the analytics high-risk class (ADR-…
feat(spec,verify): prove-it-runs proof field + ratchet, binding 4 hig…
fix(spec,runtime)!: AnalyticsQueryRequest is the bare AnalyticsQuery;…
feat(spec)!: converge the 11 contracts-vs-domain dual-source type nam…
fix(core): narrow resolveLocalizationContext cache to failed reads on…
fix(core): cache resolveLocalizationContext across requests to stop r…