Conversation
SYNC_ENTITLED_TIERS included 'enterprise', so shouldSync() returned true for any account billed at that tier, including the owner before they ever assigned themselves a seat - disagreeing with the server, which now requires enterprise_owner_id to actually be set (see the same-day cloud/ and website/ commits). Now just ['pro']; enterpriseOwnerId is what grants entitlement, tier alone does not. Checked: tsc --noEmit, npm run test (250 passing, 2 new).
… and chrono The frontend now gets every date and time from src/lib/utils/time.ts, which takes Temporal from temporal-polyfill as a value. Without that, WebView2 would run native Temporal while WKWebView and WebKitGTK ran the polyfill. The backend gets them from src-tauri/src/time.rs on temporal_rs, and chrono, SystemTime and UNIX_EPOCH are gone. cargo tree finds no path to chrono any more. Both sides now write one text format: RFC 3339 in UTC, always nine fractional digits, always Z. Before this, the same columns held chrono's +00:00 with up to nine digits from Rust and Date's Z with three from the frontend. SQLite compares those columns as text, so the completed-stash cleanup and the newest-first export could misorder two rows within the same second. The DB writers normalise whatever they are handed, and a one-time pass, recorded in PRAGMA user_version, rewrites existing rows and keeps any value it cannot read. The legacy toLocaleString() heading dates in old archives were parsed by a chrono format list. That is now a small hand-written parser, tested against every form the list accepted. The export dialog took its file name's date from UTC and its time from the local clock, so exports near midnight were named a day off. Both now come from the local calendar (CHANGELOG entry). getRelativeTime keeps its signature and i18n keys, so no call site changed. Every read of "now" goes through time.ts, so the screenshot demo freezes it with setClock instead of replacing globalThis.Date. npm run check:temporal fails on any Date, a stray polyfill import, chrono or SystemTime, and runs in the frontend test job. Checked: 268 vitest tests, 178 cargo tests with clippy -D warnings and fmt clean, check:temporal against deliberate violations in both languages, a vite build, and the queue screenshot, which still reads "6 minutes ago" under the frozen clock. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.