From a8cc1b536e1c45e12df1e71c4d9a7ca4ce7e0fa0 Mon Sep 17 00:00:00 2001 From: 0/0 Date: Wed, 27 Jan 2021 15:56:58 -0700 Subject: [PATCH] add updated at msg --- utils/news.py | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/news.py b/utils/news.py index 751cbc0..6478112 100644 --- a/utils/news.py +++ b/utils/news.py @@ -112,6 +112,7 @@ async def format_page(self, menu: menus.MenuPages, page): parse = "%Y-%m-%dT%H:%M:%SZ" if timestamp.endswith("Z") else "%Y-%m-%dT%H:%M:%S%z" try: e.timestamp = from_time_to_datetime(time.strptime(timestamp, parse)) + e.set_footer(text="Published at") except ValueError: # noinspection SpellCheckingInspection pass # ignore ValueErrors from the time.strptime func