Philipp Hörist pushed to branch master at gajim / gajim


Commits:
f6b755f3 by Philipp Hörist at 2024-06-20T21:18:25+02:00
fix: Reactions: Show timestamp in correct timezone

Fixes #11875

- - - - -


1 changed file:

- gajim/gtk/conversation/reactions_bar.py


Changes:

=====================================
gajim/gtk/conversation/reactions_bar.py
=====================================
@@ -180,9 +180,9 @@ def __init__(self, emoji: str, reaction_data: 
list[ReactionData]) -> None:
         for reaction in reaction_data[:MAX_USERS]:
             if reaction.from_us:
                 self.from_us = True
-            tooltip_markup += (
-                f'{reaction.username} 
({reaction.timestamp.strftime(format_string)})\n'
-            )
+
+            dt_str = reaction.timestamp.astimezone().strftime(format_string)
+            tooltip_markup += (f'{reaction.username} ({dt_str})\n')
         if len(reaction_data) > MAX_USERS:
             tooltip_markup += _('And more...')
 



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/f6b755f3acff9d47c8f708de1f2767a49d97721b

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/f6b755f3acff9d47c8f708de1f2767a49d97721b
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to