fix: sync time always showing stale 8h ago#1
Merged
doodlewind merged 1 commit intomainfrom Mar 27, 2026
Merged
Conversation
SQLite datetime('now') stores UTC without timezone suffix. JS
new Date() parsed it as local time, creating an offset equal to
the user's timezone. Append 'Z' to force UTC interpretation.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
graydawnc
added a commit
that referenced
this pull request
Apr 11, 2026
First cut of the connector subsystem Effect migration. SyncError now extends Effect's Data.TaggedError so it participates in Effect's typed error channel while remaining a regular throwable Error for the Promise-based plugin boundary. The positional constructor (code, message?, cause?) is preserved so the Phase B contract tests and all existing call sites (twitter-bookmarks, sync-engine wrapping, chrome-cookies) continue to work unchanged. - Add \`effect\` dep to @spool/core - Replace switch in retryable with a RETRYABLE_CODES set - Drop redundant WHAT-comments on needsReauth/retryable All 65 @spool/core tests remain green; tsc clean. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This was referenced Apr 11, 2026
3 tasks
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.
Summary
datetime('now')stores UTC without aZsuffix — JSnew Date()parsed it as local time, so the sync timestamp was always off by the user's timezone offset (8h in UTC+8)Zbefore parsing in both the Electron status bar and CLI status commandTest plan
pnpm dev, trigger sync, verify status bar shows "just now" instead of "8h ago"spool statusin CLI, verify last synced time is correct🤖 Generated with Claude Code