aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) => {