Fix timezone display in history page (#408)

History page now respects the TZ environment variable for displaying
timestamps. Also changed from toLocaleTimeString to toLocaleString to
show both date and time for better clarity.

Changes:
- Add TIMEZONE export from env.ts using TZ environment variable
- Pass timeZone option to toLocaleString in history.tsx
This commit is contained in:
lif 2025-12-17 23:46:02 +08:00
parent 911587ea68
commit 3c1ecbbdfb
2 changed files with 4 additions and 2 deletions

View file

@ -23,3 +23,5 @@ export const MAX_CONVERT_PROCESS =
export const UNAUTHENTICATED_USER_SHARING =
process.env.UNAUTHENTICATED_USER_SHARING?.toLowerCase() === "true" || false;
export const TIMEZONE = process.env.TZ || undefined;