Files
pangolin/server
Hayyan Hajwani 9298ec7cdb fix(setup): correct month index and zero-pad database backup file names
Backup names were built inline from Date#getMonth, which is zero-indexed, so a
backup taken on 12 September 2026 was written as db_2026-8-12_20-35-56.sqlite.
No field was zero-padded either, giving names like db_2026-8-12_20-36-2.sqlite.

Extract formatBackupTimestamp into server/lib and use it from both places that
built the string: the backupDb helper in migrationsSqlite.ts and the inline copy
in the 1.0.0-beta9 setup script. Padding every field also makes the names sort
lexicographically in the order the backups were taken.

Adds tests covering both reported names, single-digit padding and sort order.
Reverting the helper to the old formula fails them with the exact name from the
report.
2026-09-16 13:46:57 +05:30
..
2026-09-15 10:56:39 -04:00
2026-09-15 16:25:53 -04:00
2026-09-15 16:25:53 -04:00
2026-09-15 15:02:37 -04:00
2026-02-24 17:58:11 -08:00
2026-04-21 20:51:59 -07:00
2026-09-14 16:48:10 -04:00
2026-08-11 12:19:28 -04:00
2026-09-14 16:48:09 -04:00
2025-04-06 16:06:50 -04:00
2026-09-14 16:48:10 -04:00
2026-09-03 11:35:28 -04:00
2026-08-17 12:00:13 -04:00