mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-06 10:25:18 -05:00
fix: use mtime instead of ctime for backup dates (#1461)
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user