From f570304b9aa4fad8775c91d259a7a2c2a8bafb06 Mon Sep 17 00:00:00 2001 From: MarkenJaden Date: Thu, 9 Dec 2021 01:20:49 +0100 Subject: [PATCH] Added UTC time to "Last Updated on" --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 7e24e5e..7109756 100644 --- a/main.py +++ b/main.py @@ -505,9 +505,9 @@ def get_stats(github): stats = stats + '![Chart not found](https://raw.githubusercontent.com/' + username + '/' + username + '/' + branch_name + '/charts/bar_graph.png) \n\n' if show_updated_date.lower() in truthy: - today = date.today() - d1 = today.strftime("%d/%m/%Y") - stats = stats + "\n Last Updated on " + d1 + now = datetime.datetime.utcnow() + d1 = now.strftime("%d/%m/%Y %H:%M:%S") + stats = stats + "\n Last Updated on " + d1 + " UTC" return stats