1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2025-04-19 02:42:15 +00:00

Revert backup date format

This commit is contained in:
David Ferreira de Sousa Duque 2020-10-15 19:29:27 +01:00
parent f7bfa8ff42
commit f7e46ca6f1
No known key found for this signature in database
GPG Key ID: 2F327738A3C0AE3A

View File

@ -51,7 +51,7 @@ def backup_status(env):
date = dateutil.parser.parse(keys[1]).astimezone(dateutil.tz.tzlocal())
return {
"date": keys[1],
"date_str": date.isoformat() + " (" + 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