From 69ed5042edffd8e0a91222bfd0a688268ec2ae32 Mon Sep 17 00:00:00 2001 From: Thomas Hackl Date: Fri, 9 Jan 2026 12:34:38 +0100 Subject: =?UTF-8?q?Resolve=20"Kurzlinks:=20Anzeige=20des=20=C3=84nderungsd?= =?UTF-8?q?atums=20ist=20kaputt"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #6150 Merge request studip/studip!4665 --- resources/vue/apps/short-urls/ShortUrlList.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/resources/vue/apps/short-urls/ShortUrlList.vue b/resources/vue/apps/short-urls/ShortUrlList.vue index 0325fc8..6aaf96a 100644 --- a/resources/vue/apps/short-urls/ShortUrlList.vue +++ b/resources/vue/apps/short-urls/ShortUrlList.vue @@ -132,17 +132,12 @@ const actionMenuItems = [ ]; const formatDate = (datestring) => { - const date = new Date(datestring); const formatter = new Intl.DateTimeFormat(String.locale, { dateStyle: 'short', timeStyle: 'short' }); - // We need to get rid of the comma separating date and time - const parts = formatter.formatToParts(date); - return parts.filter(p => p.type !== 'literal') - .map(p => p.value) - .join(' '); + return formatter.format(new Date(datestring)); } const copyToClipboard = (link) => { -- cgit v1.0