From d65fbacac682dcb0b13f40437c63e608d5262477 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Wed, 28 May 2025 13:05:32 +0200 Subject: [PATCH] room-history: Replace ratio character with colon in timestamps Apparently using the ratio character can create issues for RTL languages. --- src/session/view/content/room_history/member_timestamp/row.rs | 4 ++-- src/session/view/content/room_history/message_row/mod.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/session/view/content/room_history/member_timestamp/row.rs b/src/session/view/content/room_history/member_timestamp/row.rs index becca346..63d5972c 100644 --- a/src/session/view/content/room_history/member_timestamp/row.rs +++ b/src/session/view/content/room_history/member_timestamp/row.rs @@ -106,13 +106,13 @@ mod imp { // For example, "May 5 at 01:20 PM". // Do not change the time format as it will follow the system settings. // See `man strftime` or the documentation of g_date_time_format for the available specifiers: - gettext("%B %-e at %I∶%M %p") + gettext("%B %-e at %I:%M %p") } else { // Translators: this is a date and a time in 24h format. // For example, "May 5 at 13:20". // Do not change the time format as it will follow the system settings. // See `man strftime` or the documentation of g_date_time_format for the available specifiers: - gettext("%B %-e at %H∶%M") + gettext("%B %-e at %H:%M") }; let label = datetime.format(&format).unwrap(); diff --git a/src/session/view/content/room_history/message_row/mod.rs b/src/session/view/content/room_history/message_row/mod.rs index 47e6b190..85e04cfd 100644 --- a/src/session/view/content/room_history/message_row/mod.rs +++ b/src/session/view/content/room_history/message_row/mod.rs @@ -236,7 +236,7 @@ mod imp { let clock_format = Application::default().system_settings().clock_format(); let time = if clock_format == ClockFormat::TwelveHours { - datetime.format("%I∶%M %p").unwrap() + datetime.format("%I:%M %p").unwrap() } else { datetime.format("%R").unwrap() };