summaryrefslogtreecommitdiff
path: root/src/components/Mixins/LocalTimezoneLabelMixin.js
diff options
context:
space:
mode:
authorSurya V <suryav@ami.com>2024-07-11 12:49:46 +0300
committerEd Tanous <ed@tanous.net>2024-10-03 21:34:06 +0300
commitde23ea23d88451a2fa2774ec72053772603c23ae (patch)
tree8b9a8e7df2a8eebffd4306d8ba805867d5f65bce /src/components/Mixins/LocalTimezoneLabelMixin.js
parent883a0d597962dfd30d6c48319b8b33e2d0f98606 (diff)
downloadwebui-vue-de23ea23d88451a2fa2774ec72053772603c23ae.tar.xz
Vuelidate, I18n, and filter are upgraded to vue3
While navigating to the pages i18n, vuelidate, and filters errors occurred. i18n, and vuelidate code changes in each page adapted to vue3. Filter global function for date and time format implemented in the main.js file and those files which as called the filter functions. Change-Id: If1a2ee22d47750faef1c35ef2c263299067d9a20 Signed-off-by: Surya Venkatesan <suryav@ami.com>
Diffstat (limited to 'src/components/Mixins/LocalTimezoneLabelMixin.js')
-rw-r--r--src/components/Mixins/LocalTimezoneLabelMixin.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/Mixins/LocalTimezoneLabelMixin.js b/src/components/Mixins/LocalTimezoneLabelMixin.js
index 6b4141c60..7bbd70594 100644
--- a/src/components/Mixins/LocalTimezoneLabelMixin.js
+++ b/src/components/Mixins/LocalTimezoneLabelMixin.js
@@ -4,7 +4,7 @@ const LocalTimezoneLabelMixin = {
methods: {
localOffset() {
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;
- const shortTz = this.$options.filters.shortTimeZone(new Date());
+ const shortTz = this.$filters.shortTimeZone(new Date());
const pattern = `'${shortTz}' O`;
return format(new Date(), pattern, { timezone }).replace('GMT', 'UTC');
},