Files
pangolin/server/lib
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-08-04 10:15:49 -04:00
2026-09-15 16:25:53 -04:00
2026-09-14 18:05:30 -04:00
2026-09-15 16:25:53 -04:00
2026-08-17 12:00:12 -04:00
2026-08-17 12:00:12 -04:00
2026-08-11 12:19:28 -04:00
2026-09-14 17:18:31 -04:00
2026-09-14 16:48:07 -04:00
2026-09-15 10:56:39 -04:00
2026-08-17 12:00:12 -04:00
2026-07-01 21:13:40 -04:00
2026-04-15 14:41:13 -07:00
2026-07-19 14:41:07 -04:00
2026-09-15 10:56:39 -04:00
2026-07-03 09:02:08 -04:00
2026-09-14 16:48:10 -04:00
2026-04-15 14:41:13 -07:00
2026-04-23 14:05:08 -07:00
2026-07-29 17:45:19 -04:00
2026-04-15 14:41:13 -07:00
2026-07-19 13:45:44 +05:30