diff --git a/src/components/PlayerProfileView/ProfileHistoryList.vue b/src/components/PlayerProfileView/ProfileHistoryList.vue index 0047f14..1975539 100644 --- a/src/components/PlayerProfileView/ProfileHistoryList.vue +++ b/src/components/PlayerProfileView/ProfileHistoryList.vue @@ -48,18 +48,20 @@ : !entry.value.terminated && entry.type != 'IssuedTimetable' " > - {{ entry.date.toLocaleString('pl-PL', { dateStyle: 'long', timeStyle: 'short' }) }} - + {{ dateToLocaleString(entry.date, { dateStyle: 'long', timeStyle: 'short' }) }} + - - {{ - new Date(entry.value.timestampTo).toLocaleString('pl-PL', { - dateStyle: - new Date(entry.value.timestampTo).getDay() == entry.date.getDay() - ? undefined - : 'long', + {{ + dateToLocaleString(new Date(entry.value.timestampTo), { timeStyle: 'short' }) - }} + }} + {{ + dateToLocaleString(new Date(entry.value.timestampTo), { + dateStyle: 'long', + timeStyle: 'short' + }) + }} @@ -97,8 +99,8 @@