Skip to content
This repository has been archived by the owner on Aug 20, 2021. It is now read-only.

Commit

Permalink
add updated at msg
Browse files Browse the repository at this point in the history
  • Loading branch information
0/0 committed Jan 27, 2021
1 parent e91d4c9 commit a8cc1b5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/news.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a8cc1b5

Please sign in to comment.