From 28120637e15e97a45f0b624c47ed47eb6b183e41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 10 Apr 2021 14:05:14 +0200 Subject: [PATCH] Another attempt at fixing the damn date --- web/frontend/src/components/AttemptList.vue | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/web/frontend/src/components/AttemptList.vue b/web/frontend/src/components/AttemptList.vue index 31cf676..fddb112 100644 --- a/web/frontend/src/components/AttemptList.vue +++ b/web/frontend/src/components/AttemptList.vue @@ -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, },