Add locale-based time formatting in the chat panel (#7945)

This commit addresses the issue of time formats displayed in the chat
panel. Previously, the time was always displayed in a 12-hour format,
regardless of the user's locale. The `format_timestamp` function has
been updated to check the system locale and format the time accordingly.


Release Notes:
- Fixed time formatting in the chat panel to be locale based.
This commit is contained in:
evrsen
2024-02-17 08:44:28 -07:00
committed by GitHub
parent cd4d2f7900
commit 98ffdca32e
4 changed files with 120 additions and 25 deletions
Generated
+1
View File
@@ -2115,6 +2115,7 @@ dependencies = [
"settings",
"smallvec",
"story",
"sys-locale",
"theme",
"theme_selector",
"time",