From 10090756a13bafdf594dbc16b6af732acf52b1be Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Thu, 17 Feb 2022 13:55:45 +0100 Subject: [PATCH 1/4] avoid moment, use minus signs --- frontend/src/components/DecayInformation.vue | 66 +++++----- frontend/src/components/Transaction.vue | 2 +- frontend/src/i18n.js | 8 +- frontend/src/plugins/dashboard-plugin.js | 3 - .../AccountOverview/GddTransactionList.vue | 118 +++++++++--------- frontend/test/testSetup.js | 3 - 6 files changed, 93 insertions(+), 107 deletions(-) diff --git a/frontend/src/components/DecayInformation.vue b/frontend/src/components/DecayInformation.vue index 28af9b2b4..901b8f52b 100644 --- a/frontend/src/components/DecayInformation.vue +++ b/frontend/src/components/DecayInformation.vue @@ -1,7 +1,7 @@ diff --git a/frontend/src/components/Transaction.vue b/frontend/src/components/Transaction.vue index f1deca565..1dcfee13a 100644 --- a/frontend/src/components/Transaction.vue +++ b/frontend/src/components/Transaction.vue @@ -50,7 +50,7 @@ {{ $t('form.date') }} - {{ $d($moment(date), 'long') }} {{ $i18n.locale === 'de' ? 'Uhr' : '' }} + {{ $d(new Date(date), 'long') }} {{ $i18n.locale === 'de' ? 'Uhr' : '' }} diff --git a/frontend/src/i18n.js b/frontend/src/i18n.js index 98e4ec971..0ce43310b 100644 --- a/frontend/src/i18n.js +++ b/frontend/src/i18n.js @@ -69,8 +69,8 @@ const dateTimeFormats = { }, long: { year: 'numeric', - month: 'short', - day: 'numeric', + month: 'long', + day: 'long', weekday: 'short', hour: 'numeric', minute: 'numeric', @@ -84,9 +84,9 @@ const dateTimeFormats = { }, long: { day: 'numeric', - month: 'short', + month: 'long', year: 'numeric', - weekday: 'short', + weekday: 'long', hour: 'numeric', minute: 'numeric', }, diff --git a/frontend/src/plugins/dashboard-plugin.js b/frontend/src/plugins/dashboard-plugin.js index 4825377c7..983210027 100755 --- a/frontend/src/plugins/dashboard-plugin.js +++ b/frontend/src/plugins/dashboard-plugin.js @@ -11,8 +11,6 @@ import '@/assets/scss/gradido.scss' import FlatPickr from 'vue-flatpickr-component' import 'flatpickr/dist/flatpickr.css' -import VueMoment from 'vue-moment' - import Loading from 'vue-loading-overlay' import 'vue-loading-overlay/dist/vue-loading.css' @@ -24,7 +22,6 @@ export default { Vue.use(GlobalDirectives) Vue.use(BootstrapVue) Vue.use(IconsPlugin) - Vue.use(VueMoment) Vue.use(PortalVue) Vue.use(FlatPickr) Vue.use(Loading) diff --git a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue index f6c046fe6..d39d5ea88 100644 --- a/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue +++ b/frontend/src/views/Pages/AccountOverview/GddTransactionList.vue @@ -77,7 +77,7 @@
- {{ $d($moment(date), 'long') }} {{ $i18n.locale === 'de' ? 'Uhr' : '' }} + {{ $d(new Date(date), 'long') }} {{ $i18n.locale === 'de' ? 'Uhr' : '' }}
@@ -142,66 +142,66 @@