Skip to content

armgit / jan

Public Imported from GitHub
0

Jan is an open source alternative to ChatGPT that runs 100% offline on your computer.

fix: local date

Faisal Amirccc16b662711
diff --git a/web-app/src/utils/formatDate.ts b/web-app/src/utils/formatDate.ts
index aa48e3c5d..9422f03e2 100644
--- a/web-app/src/utils/formatDate.ts
+++ b/web-app/src/utils/formatDate.ts
@@ -15,10 +15,9 @@ export const formatDate = (
}
if (includeTime) {
- // Time mode: short month + time, fixed UTC for stable output in tests
+ // Time mode: short month + time, using local timezone
return new Date(date).toLocaleString('en-US', {
...base,
- timeZone: 'UTC',
month: 'short',
hour: 'numeric',
minute: 'numeric',
@@ -26,10 +25,9 @@ export const formatDate = (
})
}
- // Date-only mode: long month, no timezone adjustment
+ // Date-only mode: long month, using local timezone
return new Date(date).toLocaleDateString('en-US', {
...base,
- timeZone: 'UTC',
month: 'long',
})
}