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
Add acceptance tests for the timezone-aware today()/daysFromNow()/daysAgo()
functions (compute-tz core of ADR-0053 Phase 2, decision D1). The
implementation already shipped (#1998/#2001/#2006); these lock the issue's
criteria and pin the DST-boundary + equality behavior:
- AC1: today() at 2026-06-16T02:00Z in America/Los_Angeles == UTC-midnight of
2026-06-15.
- AC3: reference tz unset vs 'UTC' is byte-for-byte the pre-Phase-2 behavior
for all three functions.
- AC2: calendar days are correct across both 2026 US DST transitions
(spring-forward Mar 8, fall-back Nov 1); a Field.datetime instant compares
equal to daysFromNow(n) across DST; a Field.date string matches via the
hydration-safe idioms (ordering operators, date(), daysBetween()).
- A characterization guard documents the known cel-js equality limitation:
a bare `date-string == today()` silently returns false because cel-js's
isEqual hard-codes `string == X` to false. This is timezone-independent and
cross-cutting; the fix belongs in the data layer (hydrate date fields to Date
where field types are known) and is tracked as a separate follow-up.
Test-only; no changeset (no functional change).
Claude-Session: https://claude.ai/code/session_01SuiM565BZ3TR1VD3prMguB
Co-authored-by: Claude <noreply@anthropic.com>
0 commit comments