mirror of
https://github.com/ramvignesh-b/pi-ku.git
synced 2026-05-04 15:56:56 +00:00
fix: force en-US locale in Intl formatters to ensure consistent date and time output
This commit is contained in:
@@ -1,13 +1,13 @@
|
|||||||
const timeFormatter = new Intl.DateTimeFormat(undefined, {
|
const timeFormatter = new Intl.DateTimeFormat("en-US", {
|
||||||
timeStyle: "short",
|
timeStyle: "short",
|
||||||
});
|
});
|
||||||
|
|
||||||
const dateTimeFormatter = new Intl.DateTimeFormat(undefined, {
|
const dateTimeFormatter = new Intl.DateTimeFormat("en-US", {
|
||||||
dateStyle: "medium",
|
dateStyle: "medium",
|
||||||
timeStyle: "short",
|
timeStyle: "short",
|
||||||
});
|
});
|
||||||
|
|
||||||
const rtf = new Intl.RelativeTimeFormat(undefined, {
|
const rtf = new Intl.RelativeTimeFormat("en-US", {
|
||||||
numeric: "auto",
|
numeric: "auto",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,6 @@ export default defineConfig({
|
|||||||
test: {
|
test: {
|
||||||
env: {
|
env: {
|
||||||
VITE_API_URL: "http://piku-server",
|
VITE_API_URL: "http://piku-server",
|
||||||
TZ: "Asia/Kolkata",
|
|
||||||
},
|
},
|
||||||
include: ["**/*.test.ts"],
|
include: ["**/*.test.ts"],
|
||||||
environment: "jsdom",
|
environment: "jsdom",
|
||||||
|
|||||||
Reference in New Issue
Block a user