Merge pull request #247 from MarkenJaden/master

Added UTC time to "Last Updated on"
This commit is contained in:
Anmol Pratap Singh
2022-01-20 11:14:16 +05:30
committed by GitHub

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' 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: if show_updated_date.lower() in truthy:
today = date.today() now = datetime.datetime.utcnow()
d1 = today.strftime("%d/%m/%Y") d1 = now.strftime("%d/%m/%Y %H:%M:%S")
stats = stats + "\n Last Updated on " + d1 stats = stats + "\n Last Updated on " + d1 + " UTC"
return stats return stats