Skip to content

fix(pick): show local times on Windows - #82

Merged
backnotprop merged 1 commit into
mainfrom
fix/windows-local-time
Sep 21, 2026
Merged

backnotprop merged 1 commit into
mainfrom
fix/windows-local-time

Conversation

@backnotprop

Copy link
Copy Markdown
Contributor

The reply picker's clock offset came from date +%z on Unix and was zero everywhere else, so Windows showed UTC. This enables the time crate's local-offset feature (already a dependency) and uses UtcOffset::current_local_offset() on Windows only; the Unix path is unchanged. A cross-platform test asserts the offset is a real time zone, so the Windows CI job exercises the new path.

@backnotprop
backnotprop force-pushed the fix/windows-local-time branch 2 times, most recently from 22bacac to fdb999e Compare September 21, 2026 20:22
The offset lookup returned zero everywhere but Unix, so the reply picker
showed UTC on Windows. The time crate's local-offset feature reads the zone
the OS reports; the Unix path is unchanged.
@backnotprop
backnotprop force-pushed the fix/windows-local-time branch from fdb999e to 2fb7283 Compare September 21, 2026 20:22
@backnotprop
backnotprop added this pull request to the merge queue Sep 21, 2026
Merged via the queue into main with commit b8dbcc5 Sep 21, 2026
2 checks passed
@backnotprop
backnotprop deleted the fix/windows-local-time branch September 21, 2026 20:36
@backnotprop backnotprop mentioned this pull request Sep 21, 2026
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