From f36c88aa892fccab3fe0a21572f6b147ab48cf18 Mon Sep 17 00:00:00 2001 From: Misaka_Company Date: Tue, 28 Apr 2026 13:53:54 +0800 Subject: [PATCH] fix(extractor): display operation time in local timezone Co-Authored-By: Claude Opus 4.6 --- .../components/ExtractorOperationHistoryModal.tsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/renderer/src/components/ExtractorOperationHistoryModal.tsx b/src/renderer/src/components/ExtractorOperationHistoryModal.tsx index eaa200c..7e057cd 100644 --- a/src/renderer/src/components/ExtractorOperationHistoryModal.tsx +++ b/src/renderer/src/components/ExtractorOperationHistoryModal.tsx @@ -62,12 +62,12 @@ const formatDateTime = (dateStr: string) => { return dateStr // Return original if invalid } - // Use UTC methods to display the time as stored in database (without timezone conversion) - const year = date.getUTCFullYear() - const month = String(date.getUTCMonth() + 1).padStart(2, '0') - const day = String(date.getUTCDate()).padStart(2, '0') - const hours = String(date.getUTCHours()).padStart(2, '0') - const minutes = String(date.getUTCMinutes()).padStart(2, '0') + // Use local time for display + const year = date.getFullYear() + const month = String(date.getMonth() + 1).padStart(2, '0') + const day = String(date.getDate()).padStart(2, '0') + const hours = String(date.getHours()).padStart(2, '0') + const minutes = String(date.getMinutes()).padStart(2, '0') return `${year}-${month}-${day} ${hours}:${minutes}` }