From 2a13bb375e923346a5706632571327a62fa1a181 Mon Sep 17 00:00:00 2001 From: Grant Fitzsimmons <37256050+grantfitzsimmons@users.noreply.github.com> Date: Wed, 30 Oct 2024 11:22:16 -0500 Subject: [PATCH] Remove seconds --- app/pages/api/databases/[name]/clone.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/pages/api/databases/[name]/clone.ts b/app/pages/api/databases/[name]/clone.ts index 9fbb9e0..a48a9f0 100644 --- a/app/pages/api/databases/[name]/clone.ts +++ b/app/pages/api/databases/[name]/clone.ts @@ -36,7 +36,7 @@ export default async function handler( // Generate a new database name with timestamp const now = new Date(); - const timestamp = `${now.getFullYear()}_${String(now.getMonth() + 1).padStart(2, '0')}_${String(now.getDate()).padStart(2, '0')}_${String(now.getHours()).padStart(2, '0')}_${String(now.getMinutes()).padStart(2, '0')}_${String(now.getSeconds()).padStart(2, '0')}`; + const timestamp = `${now.getFullYear()}_${String(now.getMonth() + 1).padStart(2, '0')}_${String(now.getDate()).padStart(2, '0')}_${String(now.getHours()).padStart(2, '0')}_${String(now.getMinutes()).padStart(2, '0')}`; const newDatabaseName = `${existingDatabaseName}_${timestamp}`; // Create the new database