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',
|
||||
hour: '2-digit',
|
||||
minute: '2-digit',
|
||||
hour12:
|
||||
['AM', 'PM'].includes(props.formattedTimestamp ?? 'AM')
|
||||
hour12: ['AM', 'PM'].some(period => (props.formattedTimestamp ?? 'AM').includes(period))
|
||||
}).format(new Date(props.timestamp ?? new Date()));
|
||||
return reformattedDate;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user