Skip to content

Preserve calendar edit timestamps and exact supported-year time conversions - #979

Merged
NewWorldVenture merged 1 commit into
mainfrom
codex/calendar-ip-fixes-20261009
Oct 9, 2026
Merged

NewWorldVenture merged 1 commit into
mainfrom
codex/calendar-ip-fixes-20261009

Conversation

@NewWorldVenture

Copy link
Copy Markdown
Owner

Editing only a calendar event's title could move a repeated DST hour or discard stored seconds and fractional precision. The modal now supplies each matching original timestamp to a strictly validated optional hint, preserving its exact bytes when the wall-clock input is unchanged. Changed inputs retain the existing conversion policy.

This also fixes supported AD1–99 dates becoming 1901–1999 during the calendar handoff, invalid/extended-year clock formatting, normalized query instants escaping the supported UTC domain, and historical IANA offsets that include seconds. The public minute-only clock shape and existing routine/RFC gap and fold policies are retained.

Validation:

  • 2,904 tests across 118 complete files pass without skips in each of UTC, America/Los_Angeles and Asia/Tokyo against the integrated source.
  • Full-project type checking and changed-source/new-test lint pass. Independent native controls and causal reversions reproduce the original defects.
  • 18 first-attempt Chromium cases execute the actual extracted modal, React, native inputs, FormData and helpers. Widgets, schema and action endpoints are synthetic; separate action tests use modeled authentication and in-memory storage.

finalaudit.md documents all five fixes, six permanent regression files and the remaining gates. Full feature rows remain in progress, including a separately reproduced historical second-scale gap in whole-clock normalization. Exact-head hosted build/browser/Auth/database/cleanup and production readback are still required. Production readiness remains NO; held migrations and production configuration are unchanged.

@vercel

vercel Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
bubaly Ignored Ignored Oct 9, 2026 5:13pm UTC

Request Review

Copy link
Copy Markdown
Owner Author

Audit follow-up CALENDAR-EDIT-MICROSECOND-ORDER (source review at 9ee6a91; inherited residual, not a new regression).

The current PR owner can take this bounded follow-up after the active slice; if already allocated, link the existing task rather than duplicate it. In components/modules/calendar-module.tsx:1074–1080, new Date(ends_at) <= new Date(starts_at) collapses distinct microsecond instants. Synthetic reproduction: an existing timed UTC event from 2026-10-09T12:30:29.456001Z to 2026-10-09T12:30:29.456002Z, edit only its title and save. The new hints retain both original strings, but this comparison blocks the action as equal. The real calendar service accepts integral microseconds and compares exact instants. This was confirmed by source inspection, not runtime execution.

Next task: preserve exact ordering in this modal while retaining its intended equality/refusal policy. Add a modal-level regression for an unchanged positive same-millisecond interval, plus equal/reversed controls, and report the repair commit and exact-head test/CI evidence. Keep the existing finalaudit.md writer and IDs/history; record candidate evidence separately from main. The synthetic browser fixture bypasses real action/schema boundaries, so its nanosecond payload case must not be credited as database persistence proof. Historical whole-clock gaps remain separately held. No merge, deployment, production SQL/configuration or credential changes requested.

@NewWorldVenture
NewWorldVenture merged commit 36a516d into main Oct 9, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant