fix: ensure consistent date display by explicitly setting UTC timezone in date formatting
This commit is contained in:
@@ -25,6 +25,7 @@
|
|||||||
month: "short",
|
month: "short",
|
||||||
day: "numeric",
|
day: "numeric",
|
||||||
year: "numeric",
|
year: "numeric",
|
||||||
|
timeZone: "UTC",
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -106,9 +106,10 @@
|
|||||||
>
|
>
|
||||||
<span>•</span>
|
<span>•</span>
|
||||||
<span
|
<span
|
||||||
>{new Date(
|
>{new Date(print.date).toLocaleDateString(
|
||||||
print.date,
|
"en-US",
|
||||||
).toLocaleDateString()}</span
|
{ timeZone: "UTC" },
|
||||||
|
)}</span
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user