use12hour config arg

This commit is contained in:
Bernt Christian Egeland 2023-02-18 16:34:21 +01:00
parent 04dfe9e1e8
commit a1a4254504

View File

@ -508,7 +508,7 @@ export default function Events({ path, ...props }) {
</div>
<div className="text-sm flex">
<Clock className="h-5 w-5 mr-2 inline" />
{formatUnixTimestampToDateTime(event.start_time, locale, timezone)}
{formatUnixTimestampToDateTime(event.start_time, locale, timezone, config.ui?.use12hour)}
<div className="hidden md:inline">
<span className="m-1">-</span>
<TimeAgo time={event.start_time * 1000} dense />