Another attempt at fixing the damn date

This commit is contained in:
Torjus Håkestad 2021-04-10 14:05:14 +02:00
parent c9f8d6ce0b
commit 28120637e1

View File

@ -24,10 +24,8 @@ export default class AttemptList extends Vue {
sortable: true, sortable: true,
formatter: (value: string): string => { formatter: (value: string): string => {
const d = new Date(value); const d = new Date(value);
const hours = d.getUTCHours(); // This seems stupid...
const minutes = d.getUTCMinutes(); return d.toTimeString().split(' ')[0];
const seconds = d.getUTCSeconds();
return `${hours}:${minutes}:${seconds}`;
}, },
sortByFormatted: false, sortByFormatted: false,
}, },