From 240401b9cb4cf9b096a295c0dbeb84a658a8c81f Mon Sep 17 00:00:00 2001 From: Nathan Schneider Date: Tue, 25 Nov 2025 13:38:38 -0500 Subject: [PATCH] Fixed commit date issue on JSON upload --- bicorder-app/src/components/ExportControls.svelte | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bicorder-app/src/components/ExportControls.svelte b/bicorder-app/src/components/ExportControls.svelte index d7233a3..427173c 100644 --- a/bicorder-app/src/components/ExportControls.svelte +++ b/bicorder-app/src/components/ExportControls.svelte @@ -74,6 +74,10 @@ const jsonContent = JSON.stringify(data, null, 2); const base64Content = btoa(unescape(encodeURIComponent(jsonContent))); + // Get current timestamp for commit + const now = new Date(); + const commitDate = now.toISOString(); + // Upload to Gitea const response = await fetch( `${GITEA_API_URL}/repos/${REPO_OWNER}/${REPO_NAME}/contents/${filepath}`, @@ -89,6 +93,10 @@ content: base64Content, message: commitMessage, branch: 'main', + dates: { + author: commitDate, + committer: commitDate, + }, }), } );