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,
formatter: (value: string): string => {
const d = new Date(value);
const hours = d.getUTCHours();
const minutes = d.getUTCMinutes();
const seconds = d.getUTCSeconds();
return `${hours}:${minutes}:${seconds}`;
// This seems stupid...
return d.toTimeString().split(' ')[0];
},
sortByFormatted: false,
},