Chat times are shown in UTC, not local time #1001

Closed
opened 2026-11-20 05:58:30 +00:00 by charles · 1 comment
Owner

Reported by Charles (2026-11-20): "In the chat it looks like all times are in UTC instead of local time".

Cause (found by reading the code): the message view keeps its offset in messages::State::utc_offset (crates/fluxer-ui/src/screens/main/messages.rs), which starts at UtcOffset::UTC and is never assigned anywhere at run time (the only assignment in the tree copies it into the thread panel, threads/mod.rs). The system offset is read at startup (fluxer_platform::settings::local_utc_offset_minutes, into LocalSettings::utc_offset_minutes) but only the search uses it (app.chat.search.utc_offset). The same hard-coded UtcOffset::UTC is in profile_popout.rs, forum/guidelines.rs and forum/composer.rs.

Wanted: every time and date the client shows (message timestamps and their tooltips, day separators, edited marks, reply/pin/search/forum/thread times, profile dates, members page, invites, bans, the activity log if any) uses the system's local time zone, including a change of daylight saving time or of the system zone while the app runs (re-read the offset periodically or on the minute tick, not only at startup). Tests pin the offset explicitly so they do not depend on the machine's zone.

Reported by Charles (2026-11-20): "In the chat it looks like all times are in UTC instead of local time". **Cause (found by reading the code):** the message view keeps its offset in `messages::State::utc_offset` (`crates/fluxer-ui/src/screens/main/messages.rs`), which starts at `UtcOffset::UTC` and is never assigned anywhere at run time (the only assignment in the tree copies it into the thread panel, `threads/mod.rs`). The system offset is read at startup (`fluxer_platform::settings::local_utc_offset_minutes`, into `LocalSettings::utc_offset_minutes`) but only the search uses it (`app.chat.search.utc_offset`). The same hard-coded `UtcOffset::UTC` is in `profile_popout.rs`, `forum/guidelines.rs` and `forum/composer.rs`. **Wanted:** every time and date the client shows (message timestamps and their tooltips, day separators, edited marks, reply/pin/search/forum/thread times, profile dates, members page, invites, bans, the activity log if any) uses the system's local time zone, including a change of daylight saving time or of the system zone while the app runs (re-read the offset periodically or on the minute tick, not only at startup). Tests pin the offset explicitly so they do not depend on the machine's zone.
Author
Owner

Fixed in nightly 2026.1120.417.

Fixed in nightly 2026.1120.417.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#1001
No description provided.