1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-11 12:46:49 +00:00
webvirtcloud/appsettings/tests
catborise 25e49c2aa2 fix: backups and snapshots keep their order when the clock goes back
Backup retention kept the last --keep backups by name, and a name is the
panel's local time. Where the clock goes back an hour in autumn
(TIME_ZONE=Europe/Berlin), a backup at 02:10 CET forty minutes after one
at 02:50 CEST sorted first, and --keep 1 deleted the new one. Retention
now keeps the newest by when they were made (the directory's mtime);
the names stay as they were.

Snapshot times from libvirt (epoch seconds) became naive local times,
which the snapshot list sorts newest first: in the same hour the older
snapshot came first. They are now aware UTC times; the page still shows
them in the panel's time zone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Kk4h2TcUiaWmU5MUszYSea
2026-11-10 12:21:36 +03:00
..
__init__.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_appsettings.py test: no seeded admin password, settings changed only for a test, no local libvirt by default 2026-11-06 13:48:03 +03:00
test_audit_rows.py fix(appsettings): a group saves what was edited, all of it or none, in one row 2026-10-26 10:12:53 +03:00
test_backup.py fix: backups and snapshots keep their order when the clock goes back 2026-11-10 12:21:36 +03:00
test_get_settings.py test: each app keeps its tests in a tests package 2026-10-12 15:17:30 +03:00
test_migrations.py chore(appsettings): one squashed migration for a new database 2026-11-06 13:47:23 +03:00
test_theme_name.py build: the themes ship compiled, libsass is no longer installed 2026-10-18 22:36:29 +03:00
test_themes.py build: the themes ship compiled, libsass is no longer installed 2026-10-18 22:36:29 +03:00