aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorThomas Hackl <hackl@data-quest.de>2026-01-09 12:34:38 +0100
committerThomas Hackl <hackl@data-quest.de>2026-01-09 12:34:38 +0100
commit69ed5042edffd8e0a91222bfd0a688268ec2ae32 (patch)
treed00c0bf0bbcdcd6d69304f160afd89ebb09f5151 /resources
parent6eca9445423546c78f2fc77110f1cf66d1d66985 (diff)
Resolve "Kurzlinks: Anzeige des Änderungsdatums ist kaputt"
Closes #6150 Merge request studip/studip!4665
Diffstat (limited to 'resources')
-rw-r--r--resources/vue/apps/short-urls/ShortUrlList.vue7
1 files changed, 1 insertions, 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) => {