Added UTC time to "Last Updated on"

This commit is contained in:
MarkenJaden
2021-12-09 01:20:49 +01:00
parent c4738cea12
commit f570304b9a

View File

@@ -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