Skip to content
Snippets Groups Projects
Commit 48780909 authored by Torsten Grote's avatar Torsten Grote
Browse files

Fix private message timestamps (Hour as 24-hour clock)

parent 4f8f664b
No related branches found
No related tags found
No related merge requests found
Pipeline #4774 passed
...@@ -69,8 +69,8 @@ class PrivateMessageWidget(Gtk.ListBoxRow): ...@@ -69,8 +69,8 @@ class PrivateMessageWidget(Gtk.ListBoxRow):
time = datetime.fromtimestamp(timestamp) time = datetime.fromtimestamp(timestamp)
current_time = datetime.today() current_time = datetime.today()
if time.date() == current_time.date(): if time.date() == current_time.date():
return time.strftime("%I:%M") return time.strftime("%H:%M")
return time.strftime("%x %I:%M") return time.strftime("%x %H:%M")
@staticmethod @staticmethod
def _create_info(username_info, date_info): def _create_info(username_info, date_info):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment