Try to fix formatter again

This commit is contained in:
Torjus Håkestad 2021-04-10 13:54:21 +02:00
parent 961c219d6e
commit b6a6f45f45

View File

@ -12,9 +12,10 @@ import { Component, Prop, Vue } from 'vue-property-decorator';
import { BvTableFieldArray, BvTableFormatterCallback } from 'bootstrap-vue';
import { LoginAttempt } from '@/apiary/apiary';
const timeFormatter: BvTableFormatterCallback = (value: string) => {
const timeFormatter: BvTableFormatterCallback = (value: string): string => {
const d = new Date(value);
return `${d.getUTCHours}:${d.getUTCMinutes}:${d.getUTCSeconds}`;
const s = `${d.getUTCHours}:${d.getUTCMinutes}:${d.getUTCSeconds}`;
return s;
};
@Component