Files
pangolin/server/setup/scriptsSqlite
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-03 11:35:28 -04:00
2026-09-03 11:35:28 -04:00
2026-09-03 11:35:28 -04:00
2026-09-03 11:35:28 -04:00
2026-09-03 11:35:28 -04:00
2026-09-03 11:35:28 -04:00
2025-12-09 10:56:14 -05:00
2026-09-03 11:35:28 -04:00
2026-09-03 11:35:28 -04:00
2026-09-03 11:35:28 -04:00
2026-09-03 11:35:28 -04:00
2026-09-03 11:35:28 -04:00
2026-09-03 11:35:28 -04:00
2025-07-16 18:09:17 -07:00
2025-07-28 17:32:15 -07:00
2025-12-09 10:56:14 -05:00
2025-12-09 10:56:14 -05:00
2025-12-09 10:56:14 -05:00
2025-09-21 20:48:13 -04:00
2025-12-09 10:56:14 -05:00
2025-12-09 10:56:14 -05:00
2026-01-19 17:57:55 -08:00
2025-12-22 21:57:14 -05:00
2026-01-21 17:57:20 -08:00
2026-02-11 19:03:23 -08:00
2026-02-12 15:00:12 -08:00
2026-09-03 11:35:28 -04:00
2026-04-09 10:29:51 -04:00
2026-04-30 10:56:12 -07:00
2026-05-06 20:00:23 -07:00
2026-05-12 20:59:58 -07:00
2026-09-03 11:35:28 -04:00
2026-07-07 16:04:41 -04:00
2026-09-03 11:35:28 -04:00
2026-09-03 11:35:28 -04:00
2026-09-14 17:18:31 -04:00