From 55a58b2ee06b9cd54e28f61e9bdb0007836a5745 Mon Sep 17 00:00:00 2001 From: Maksim Zakharov Date: Tue, 16 Aug 2022 14:52:22 +0300 Subject: fix format time --- src/components/_sila/Mixins/LocalTimezoneLabelMixin.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/components/_sila') diff --git a/src/components/_sila/Mixins/LocalTimezoneLabelMixin.js b/src/components/_sila/Mixins/LocalTimezoneLabelMixin.js index 6b4141c6..7ef7636b 100644 --- a/src/components/_sila/Mixins/LocalTimezoneLabelMixin.js +++ b/src/components/_sila/Mixins/LocalTimezoneLabelMixin.js @@ -4,8 +4,7 @@ const LocalTimezoneLabelMixin = { methods: { localOffset() { const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone; - const shortTz = this.$options.filters.shortTimeZone(new Date()); - const pattern = `'${shortTz}' O`; + const pattern = ' O'; return format(new Date(), pattern, { timezone }).replace('GMT', 'UTC'); }, }, -- cgit v1.2.3