summaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorMaksim Zakharov <m.zakharov@IBS.RU>2022-08-16 14:52:22 +0300
committerMaksim Zakharov <m.zakharov@IBS.RU>2022-08-16 14:52:22 +0300
commit55a58b2ee06b9cd54e28f61e9bdb0007836a5745 (patch)
tree515614eb9785c035d85d23cca601725e76141ca6 /src/components
parent2d2009540083a337f4dee62760c5d0cc94f9fb7a (diff)
downloadwebui-vue-55a58b2ee06b9cd54e28f61e9bdb0007836a5745.tar.xz
fix format time
Diffstat (limited to 'src/components')
-rw-r--r--src/components/_sila/Mixins/LocalTimezoneLabelMixin.js3
1 files changed, 1 insertions, 2 deletions
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');
},
},