Use ISO 8601 on backups table dates.

This commit is contained in:
hlxnd 2018-08-05 15:26:45 +02:00
parent 738e0a6e17
commit f420294819
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ def backup_status(env):
date = dateutil.parser.parse(keys[1]).astimezone(dateutil.tz.tzlocal())
return {
"date": keys[1],
"date_str": date.strftime("%x %X") + " " + now.tzname(),
"date_str": date.strftime("%Y-%m-%d %X") + " " + now.tzname(),
"date_delta": reldate(date, now, "the future?"),
"full": keys[0] == "full",
"size": 0, # collection-status doesn't give us the size