The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix date formatting for pitr broken on firefox
Joshen Lim645758ec0d29
diff --git a/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx b/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsxindex cc81c51e4ff..04fda2cda25 100644--- a/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx+++ b/studio/components/interfaces/Database/Backups/PITR/PITRSelection.tsx@@ -86,8 +86,8 @@ const PITRSelection = ({}) => {// Start: Variables specifically for date picker component// Required as it only works with vanilla Date object which is not timezone localized- const earliestAvailableBackupFormatted = new Date(earliestAvailableBackup.format('DD-MMM-YYYY'))- const latestAvailableBackupFormatted = new Date(latestAvailableBackup.format('DD-MMM-YYYY'))+ const earliestAvailableBackupFormatted = new Date(earliestAvailableBackup.format('YYYY-MM-DD'))+ const latestAvailableBackupFormatted = new Date(latestAvailableBackup.format('YYYY-MM-DD'))const isSelectedOnEarliest = checkMatchingDates(selectedDate, earliestAvailableBackupFormatted)const isSelectedOnLatest = checkMatchingDates(selectedDate, latestAvailableBackupFormatted)const availableDates = getDatesBetweenRange(