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
{{ message }}
Repository navigation
InstantRange and InstantSet read offsets beyond ±15:59:59 that timestamptz rejects #188
area/literalsParse, TryParse and formattingbugSomething isn't workingfound-by/oracleFound by the generated-oracle machinery (claims × API surfaces)package/nodatimeAffects CodoMetis.ValueRanges.NodaTimeseverity/lowCosmetic, message or documentation-level difference
InstantRange, its multirange, InstantSet and InstantSet<T> read an offset beyond ±15:59:59, which PostgreSQL's timestamptz input rejects. NodaTime's Offset reaches ±18:00, and NodaPatterns.ParseInstant takes whatever the o<G> pattern reads. Measured on main (bab799b) against PostgreSQL 16 and 18, which agree:
SELECT pg_input_is_valid('2026-01-01 10:00:00+15:59:59', 'timestamptz'), -- t
pg_input_is_valid('2026-01-01 10:00:00+16:00', 'timestamptz'), -- f
pg_input_is_valid('2026-01-01 10:00:00-16', 'timestamptz'); -- f
The library reads a value from text the server rejects. That breaks the literal rule ("both refuse, or the same value"), but it can't change a stored value: the library writes its own literal at offset zero.
Found while measuring #131's offset grammar. LiteralCorpusProbeTests family offset beyond range (added with the #130/#131 fix) catches it: with the cap removed, 8 rows fail (InstantRange, RangeSet<InstantRange>, InstantSet, InstantSet<T>, and LocalDateTime once it takes offsets). The fix caps the offset at ±15:59:59 in NodaPatterns, in the same PR as #130/#131.
area/literalsParse, TryParse and formattingbugSomething isn't workingfound-by/oracleFound by the generated-oracle machinery (claims × API surfaces)package/nodatimeAffects CodoMetis.ValueRanges.NodaTimeseverity/lowCosmetic, message or documentation-level difference
Activity