mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix: 12 hour timestamp logic corrected
This commit is contained in:
@@ -72,8 +72,7 @@ const reformattedTimestamp = computed(() => {
|
|||||||
day: 'numeric',
|
day: 'numeric',
|
||||||
hour: '2-digit',
|
hour: '2-digit',
|
||||||
minute: '2-digit',
|
minute: '2-digit',
|
||||||
hour12:
|
hour12: ['AM', 'PM'].some(period => (props.formattedTimestamp ?? 'AM').includes(period))
|
||||||
['AM', 'PM'].includes(props.formattedTimestamp ?? 'AM')
|
|
||||||
}).format(new Date(props.timestamp ?? new Date()));
|
}).format(new Date(props.timestamp ?? new Date()));
|
||||||
return reformattedDate;
|
return reformattedDate;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user