Another attempt at fixing the damn date
This commit is contained in:
parent
c9f8d6ce0b
commit
28120637e1
@ -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,
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user