Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: match scheduled backups timestamp styling in R2NP tab (#42132)

Maksym Ionutsaedd58b9b8274
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 (
<div className="grid grid-cols-4 gap-4 items-center p-4" key={backup.id}>
<div>
- <TimestampInfo utcTimestamp={backup.inserted_at} />
+ <TimestampInfo
+ displayAs="utc"
+ utcTimestamp={backup.inserted_at}
+ labelFormat="DD MMM YYYY HH:mm:ss (ZZ)"
+ className="text-left !text-sm font-mono tracking-tight"
+ />
</div>
<div>
<Badge>{JSON.stringify(backup.status).replaceAll('"', '')}</Badge>
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
</div>
<div>
<TimestampInfo
- className="font-mono text-xs text-foreground-lighter"
+ className="text-left !text-sm font-mono tracking-tight text-foreground-lighter"
+ displayAs="utc"
utcTimestamp={clone.inserted_at ?? ''}
+ labelFormat="DD MMM YYYY HH:mm:ss (ZZ)"
/>
</div>
</div>
@@ -33,8 +35,10 @@ export const PreviousRestoreItem = ({ clone }: { clone: CloneStatus['clones'][nu
</div>
<div>
<TimestampInfo
- className="font-mono text-xs text-foreground-lighter"
+ className="text-left !text-sm font-mono tracking-tight text-foreground-lighter"
+ displayAs="utc"
utcTimestamp={clone.inserted_at ?? ''}
+ labelFormat="DD MMM YYYY HH:mm:ss (ZZ)"
/>
</div>
<div className="flex items-center justify-end text-foreground-lighter group-hover:text-foreground">