Use ISO 8601 on backups table dates.
authorhlxnd <hal.x@web.de>
Sun, 5 Aug 2018 13:26:45 +0000 (15:26 +0200)
committerhlxnd <hal.x@web.de>
Sun, 5 Aug 2018 13:26:45 +0000 (15:26 +0200)
management/backup.py

index aadc2dc..8081a26 100755 (executable)
@@ -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