From 38ef748dd05bba79cd7dd6012de0c3cb73ade150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 10 Apr 2021 13:39:37 +0200 Subject: [PATCH] Change time formatting in attempt list --- web/frontend/src/components/AttemptList.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/frontend/src/components/AttemptList.vue b/web/frontend/src/components/AttemptList.vue index 5c46401..bd9a707 100644 --- a/web/frontend/src/components/AttemptList.vue +++ b/web/frontend/src/components/AttemptList.vue @@ -22,7 +22,10 @@ export default class AttemptList extends Vue { { key: 'date', 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, }, {