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