Change time formatting in attempt list

This commit is contained in:
Torjus Håkestad 2021-04-10 13:39:37 +02:00
parent ea1b37010b
commit 38ef748dd0

View File

@ -22,7 +22,10 @@ export default class AttemptList extends Vue {
{ {
key: 'date', key: 'date',
sortable: true, sortable: true,
formatter: (value: string): string => new Date(value).toTimeString(), formatter: (value: string): string => {
const d = new Date(value);
return `${d.getUTCHours}:${d.getUTCMinutes}:${d.getUTCSeconds}`;
},
sortByFormatted: false, sortByFormatted: false,
}, },
{ {