From edd58b9b82741d2cb868398c9eaafbb3c59efafa Mon Sep 17 00:00:00 2001 From: Maksym Ionutsa <123338468+peekknuf@users.noreply.github.com> Date: Thu, 29 Jan 2026 22:28:38 +0100 Subject: [PATCH] fix: match scheduled backups timestamp styling in R2NP tab (#42132) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Align Restore to New Project timestamps with Scheduled Backups by showing UTC, full date format, and consistent monospace styling ## What is the current behavior? Restore to New Project shows local time instead of UTC by default + style ## What is the new behavior? Unified the style, R2NP timestamp follows the Scheduled backup tab ## Additional context
before and after (dont judge my cropping skills)
CleanShot 2026-01-24 at 23 11 19
## Summary by CodeRabbit * **Style** * Improved timestamp presentation in backup and restore screens: consistent UTC display, clearer label format (DD MMM YYYY HH:mm:ss (ZZ)), tighter monospace styling, and better alignment for enhanced readability and visual consistency. ✏️ Tip: You can customize this high-level summary in your review settings. --- .../Database/Backups/RestoreToNewProject/BackupsList.tsx | 7 ++++++- .../Database/RestoreToNewProject/PreviousRestoreItem.tsx | 8 ++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/BackupsList.tsx b/apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/BackupsList.tsx index c7868594841..07265a6e2b5 100644 --- a/apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/BackupsList.tsx +++ b/apps/studio/components/interfaces/Database/Backups/RestoreToNewProject/BackupsList.tsx @@ -35,7 +35,12 @@ export const BackupsList = ({ onSelectRestore, disabled }: BackupsListProps) => return (
- +
{JSON.stringify(backup.status).replaceAll('"', '')} diff --git a/apps/studio/components/interfaces/Database/RestoreToNewProject/PreviousRestoreItem.tsx b/apps/studio/components/interfaces/Database/RestoreToNewProject/PreviousRestoreItem.tsx index ab65a4768f9..dcd1092da3d 100644 --- a/apps/studio/components/interfaces/Database/RestoreToNewProject/PreviousRestoreItem.tsx +++ b/apps/studio/components/interfaces/Database/RestoreToNewProject/PreviousRestoreItem.tsx @@ -15,8 +15,10 @@ export const PreviousRestoreItem = ({ clone }: { clone: CloneStatus['clones'][nu
@@ -33,8 +35,10 @@ export const PreviousRestoreItem = ({ clone }: { clone: CloneStatus['clones'][nu