Skip to content

Timestamp locale gaps (ST-GENERAL, TR-WORK) #188

Closed

Description

@rynfar

Tracks remaining timestamp parity on ST-GENERAL and TR-WORK. Web source: apps/web/src/timestampFormat.ts; desktop locale mapping: apps/desktop/src/electron/ElectronApp.ts (toSystemLocaleTag).

#199 merged as 0ee81fba11: generated V8 clock patterns/default cycles fix all 458 reported es-CO, lt-LT, ug-CN and mr-IN mismatches. Original 900-case oracle preserved plus 1,440 regression cases. Independent review also matched 240 runtime outputs and verified the generator distinguishes compatible provenance changes from real drift. Both ledger rows remain partial and now track this issue; TR-WORK no longer points at closed #7.

Still open:

  • PR fix(native): match Bulgarian and Turkish clock patterns #201 (pending review/merge) fixes the remaining 360 clock mismatches: bg-BG192 (trailing ч.), tr-TR168 (day-period position). Its head bd67c2bbe43b589ea83c0d1ce9b8d2d830d7f6fe matches all 15,120 cases in the same 42-base-locale audit, with zero remaining differences in that finite matrix. node apps/native/scripts/gen-timestamp-oracle.mjs --sweep-output /absolute/path/sweep.json; from apps/native, T3_TIMESTAMP_SWEEP=/absolute/path/sweep.json cargo test -p t3-core locale_options_match_node_intl_oracle compares every case and reports any differences without filtering failures.
  • Intl behavior outside the exact tested locale/extension/options matrix. Explicit-script/language-only tags have preexisting differences; do not mechanically broaden regional patterns.
  • Non-macOS numeric dates still use an English fallback; best-pattern/calendar selection needs a verified slice.
  • Non-macOS execution, live OS preference/timezone changes, macOS13 runtime remain unverified.

Fixture/generator provenance: Node22.22.3 /ICU78.2. Semantic checks tolerate equivalent runtime metadata while preserving accurate write provenance. Different V8/ICU versions can change real outputs: 40 existing Korean cases differ under the independently tested Node25/24 variants; those remain drift failures.

Activity

  1. added this to the M2 Parity core milestone on Nov 4, 2026
  2. added
    native:feature
    status:in-progress
    on Nov 4, 2026
  3. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    PR #199 implements the four-locale clock slice with generated V8 best patterns. It preserves the original 900-case oracle and adds 1,440 cases covering the four exact base locales, all three modes, all four Unicode hour-cycle extensions plus default, every hour, and exact midnight/noon. All 458 mismatches in those four locales are fixed; the committed oracle and required checks pass.

    Keep #188 open. The reproducible expanded 42-locale / 15,120-case audit additionally exposes 360 mismatches outside this slice: bg-BG (192: extra trailing ч. in 24-hour patterns) and tr-TR (168: 12-hour day-period position). They are deliberately reported by the optional sweep rather than accepted in the test. The PR gives the reproduction commands and exact locale list is in the generator.

    Other remaining gaps: non-macOS numeric dates retain the English fallback; parity outside the tested options/locale matrix is not established. Non-macOS execution, live OS clock/zone preference changes, and macOS 13 runtime remain unverified. Both ST-GENERAL and TR-WORK stay partial and point here; all other ledger rows and columns are unchanged.

  4. added
    status:review
    status:in-progress
    and removed
    status:in-progress
    status:review
    on Nov 4, 2026
  5. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    Merged integration passed on 0ee81fba11: snapshot build and four locale captures exited0 and were inspected. Usage-limit retry text renders es-CO 1:05, lt-LT 01:05 priešpiet, ug-CN 24-hour 1:05, and mr-IN localized digits with colon. Evidence /private/tmp/native-factory-2f5f764a/evidence-199-merged/ (es_CO-dark.png, lt_LT-dark.png, ug_CN-dark.png, mr_IN-dark.png). Copied local settings select each timestamp mode; per-process AppleLocale arguments leave OS-wide preferences unchanged. Captures use a synthetic timeline row on read-only smoke14658; no provider or server mutation. Some static cached labels disappear in the lt/ug offscreen captures, consistent with the recorded renderer limitation; target timestamp labels remain visible. Live OS behavior remains unverified. Follow-up work now targets the disclosed bg-BG/tr-TR gaps.

  6. added
    status:review
    and removed
    status:in-progress
    on Nov 4, 2026
  7. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    PR #201, head 8656e113a7becedcbdc674e43357ae75a1ae6e9a, extends the existing generated V8 supplement to exact bg-BG and tr-TR tags. The original 900 cases and prior four-locale 1,440 cases are preserved; 720 new cases cover all modes, hc extensions and hours (including exact midnight/noon). Fail-first oracle: 360 differences. Final 42-locale / 15,120-case sweep: zero differences, with failures still asserted normally. A separately linked runtime comparison covers 8,640 actual V8 outputs including default/latn/arab/deva numbering systems: zero differences. All required checks passed, including 1,329 workspace tests and full check:changed. Local before/after PNGs and logs are under /private/tmp/native-188-bg-tr/; exact image paths are in the PR.

    Keep #188 open: both ST-GENERAL and TR-WORK remain partial, with all 129 other feature rows unchanged. Explicit-script/language-only regional behavior and other Intl option matrices remain unestablished; non-macOS numeric dates retain the English fallback. Non-macOS execution, live OS preference/timezone changes and macOS 13 runtime remain unverified. This PR does not broaden date/calendar behavior.

  8. removed
    status:review
    on Nov 4, 2026
  9. rynfar commented on Nov 4, 2026

    @rynfar
    OwnerAuthor

    Bulgarian/Turkish clock patterns merged in #201 as a467fe87c2, from independently approved exact head bd67c2bbe4. The serialized trial-merge gate onto b30e4b4bb6 passed 1,340 native tests, Clippy, theme, parity and conformance; the merged tree matches the approved tree and preserves all 129 unrelated ledger rows.

    Merged snapshot build and four offscreen captures exited0 and were inspected. Bulgarian24-hour shows 13:05 without the suffix; Turkish12-hour shows ÖS 1:05; Bulgarian12-hour and Turkish24-hour controls also render the expected labels. Local evidence: /private/tmp/native-factory-2f5f764a/evidence-201-merged/. Copied smoke14658 homes and a synthetic local timeline row only; no OS preference writes, real windows, provider turns or server mutations. Known offscreen static-glyph loss appears in two captures (#202), while target timestamps remain visible.

    ST-GENERAL/TR-WORK stay partial and #188 stays open for locale/options outside the tested matrix, non-macOS numeric dates, and disclosed execution/live-OS/macOS13 verification limits. The finite audit matches 3,060 committed oracle cases,15,120 wider cases and8,640 runtime outputs; this does not claim universal Intl parity.

  10. added
    status:in-progress
    on Nov 19, 2026
  11. removed
    status:in-progress
    on Nov 19, 2026
  12. rynfar commented on Nov 20, 2026

    @rynfar
    OwnerAuthor

    Merged PR #464 (fab0ffe0ee) onto fork/native, marking ST-GENERAL -> done.

    Added best_patterns_key for explicit-script & language-only locale tags without broadening distinct regional tags, upgraded IntlTimestampClock::numeric_date to calendar-aware ICU4X DateTimeFormatter<MD/YMD> + NNBSP/NBSP normalization (fixing fa-IR, th-TH, bg), preserved all 3,060 V8 Intl oracle cases, and added deterministic regression tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    native:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions