mirror of
https://github.com/Xevion/undefined.behavio.rs.git
synced 2025-12-06 07:16:46 -06:00
Use static chicago time for datetime format rendering
This commit is contained in:
@@ -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>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user