fix: force en-US locale in Intl formatters to ensure consistent date and time output

This commit is contained in:
ramvignesh-b
2026-04-16 05:56:52 +05:30
parent 1927dedf22
commit c5aeccf58f
2 changed files with 3 additions and 4 deletions
+3 -3
View File
@@ -1,13 +1,13 @@
const timeFormatter = new Intl.DateTimeFormat(undefined, {
const timeFormatter = new Intl.DateTimeFormat("en-US", {
timeStyle: "short",
});
const dateTimeFormatter = new Intl.DateTimeFormat(undefined, {
const dateTimeFormatter = new Intl.DateTimeFormat("en-US", {
dateStyle: "medium",
timeStyle: "short",
});
const rtf = new Intl.RelativeTimeFormat(undefined, {
const rtf = new Intl.RelativeTimeFormat("en-US", {
numeric: "auto",
});
-1
View File
@@ -8,7 +8,6 @@ export default defineConfig({
test: {
env: {
VITE_API_URL: "http://piku-server",
TZ: "Asia/Kolkata",
},
include: ["**/*.test.ts"],
environment: "jsdom",