messaging: timestamps render in UTC instead of local time #188
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_archipelagos#188
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
Message bubble timestamps show UTC rather than the user's local time. With local clock at 15:40 EEST (UTC+3), bubbles displayed
12:40. Same goes for the relative-time helper for older buckets.Where
archipelagos/messaging/src/islands/mod.rs—format_timeand (relevant for the day rollover)format_relative_time:Related
Closed #76 fixed a similar bug in contacts (
format_timestamp treats Unix seconds as days). Same module-level pattern, different file.Suggested fix
Use
js_sys::Dateonwasm32andchrono::Localon native to convert before formatting. Likely belongs inhero_archipelagos_core::platformnext toformat_dateso all islands share it.Found via QA session 2026-04-29.