mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
fix: use mtime
instead of ctime
for backup dates (#1461)
This commit is contained in:
parent
c05e048b65
commit
2f7ff6d178
@ -26,7 +26,7 @@ class AdminBackupController(BaseAdminController):
|
|||||||
imports = []
|
imports = []
|
||||||
for archive in app_dirs.BACKUP_DIR.glob("*.zip"):
|
for archive in app_dirs.BACKUP_DIR.glob("*.zip"):
|
||||||
backup = BackupFile(
|
backup = BackupFile(
|
||||||
name=archive.name, date=archive.stat().st_ctime, size=pretty_size(archive.stat().st_size)
|
name=archive.name, date=archive.stat().st_mtime, size=pretty_size(archive.stat().st_size)
|
||||||
)
|
)
|
||||||
imports.append(backup)
|
imports.append(backup)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user