From e02b0f9bc7e8ae03ae1b7e2fade0ea0503095380 Mon Sep 17 00:00:00 2001 From: Michael Clark <5285928+MikesGlitch@users.noreply.github.com> Date: Tue, 2 Jul 2024 22:16:16 +0100 Subject: [PATCH] :electron: Fix backup time format in electron (#2960) * fix backup time in electron * release notes * bugfix not maintenance --- packages/loot-core/src/server/backups.ts | 2 +- upcoming-release-notes/2960.md | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 upcoming-release-notes/2960.md diff --git a/packages/loot-core/src/server/backups.ts b/packages/loot-core/src/server/backups.ts index 1fda2dee5bb..a3ad3eb10e8 100644 --- a/packages/loot-core/src/server/backups.ts +++ b/packages/loot-core/src/server/backups.ts @@ -73,7 +73,7 @@ export async function getAvailableBackups(id: string): Promise { return backups.map(backup => ({ ...backup, - date: backup.date ? dateFns.format(backup.date, 'yyyy-MM-dd h:mm') : null, + date: backup.date ? dateFns.format(backup.date, 'yyyy-MM-dd H:mm') : null, })); } diff --git a/upcoming-release-notes/2960.md b/upcoming-release-notes/2960.md new file mode 100644 index 00000000000..05d75947540 --- /dev/null +++ b/upcoming-release-notes/2960.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [MikesGlitch] +--- + +Fix time display of backup on Electrons "Load Backup" modal