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",
|
||||
});
|
||||
|
||||
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",
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user