Use static chicago time for datetime format rendering

This commit is contained in:
2023-12-04 17:07:24 -06:00
parent 7e461a18a9
commit 4f4232ab7c

View File

@@ -4,11 +4,13 @@ import type { FunctionComponent } from "react";
type TimeProps = {
time: Date;
}
};
const Time: FunctionComponent<TimeProps> = ({ time }) => {
return (
<time className="font-mono">{format(time, "MM-dd-yyyy HH:mm OOOO")}</time>
<time className="font-mono">
{format(time, "MM-dd-yyyy HH:mm OOOO", { timeZone: "America/Chicago" })}
</time>
);
};