fix(extractor): display operation time in local timezone
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -62,12 +62,12 @@ const formatDateTime = (dateStr: string) => {
|
|||||||
return dateStr // Return original if invalid
|
return dateStr // Return original if invalid
|
||||||
}
|
}
|
||||||
|
|
||||||
// Use UTC methods to display the time as stored in database (without timezone conversion)
|
// Use local time for display
|
||||||
const year = date.getUTCFullYear()
|
const year = date.getFullYear()
|
||||||
const month = String(date.getUTCMonth() + 1).padStart(2, '0')
|
const month = String(date.getMonth() + 1).padStart(2, '0')
|
||||||
const day = String(date.getUTCDate()).padStart(2, '0')
|
const day = String(date.getDate()).padStart(2, '0')
|
||||||
const hours = String(date.getUTCHours()).padStart(2, '0')
|
const hours = String(date.getHours()).padStart(2, '0')
|
||||||
const minutes = String(date.getUTCMinutes()).padStart(2, '0')
|
const minutes = String(date.getMinutes()).padStart(2, '0')
|
||||||
|
|
||||||
return `${year}-${month}-${day} ${hours}:${minutes}`
|
return `${year}-${month}-${day} ${hours}:${minutes}`
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user