You've already forked wakapi-readme-stats
Added UTC time to "Last Updated on"
This commit is contained in:
6
main.py
6
main.py
@@ -505,9 +505,9 @@ def get_stats(github):
|
||||
stats = stats + ' \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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user