diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/views/_sila/Overview/OverviewQuickLinks.vue | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/views/_sila/Overview/OverviewQuickLinks.vue b/src/views/_sila/Overview/OverviewQuickLinks.vue index ad82ee6f..ca069fe0 100644 --- a/src/views/_sila/Overview/OverviewQuickLinks.vue +++ b/src/views/_sila/Overview/OverviewQuickLinks.vue @@ -5,7 +5,11 @@ <dl> <dt>{{ $t('pageOverview.bmcTime') }}</dt> <dd v-if="liveBmcTime" data-test-id="overviewQuickLinks-text-bmcTime"> - {{ liveBmcTime | formatDate }} {{ liveBmcTime | formatTime }} + {{ liveBmcTime | formatDate }} + <span style="display: inline-block; width: 68px">{{ + liveClock + }}</span> + {{ isUtcDisplay ? $t('pageProfileSettings.UTC') : timezone }} </dd> <dd v-else>--</dd> </dl> @@ -28,13 +32,14 @@ <script> import ArrowRight16 from '@carbon/icons-vue/es/arrow--right/16'; import BVToastMixin from '@/components/_sila/Mixins/BVToastMixin'; +import LocalTimezoneLabelMixin from '@/components/_sila/Mixins/LocalTimezoneLabelMixin'; export default { name: 'QuickLinks', components: { IconArrowRight: ArrowRight16, }, - mixins: [BVToastMixin], + mixins: [BVToastMixin, LocalTimezoneLabelMixin], computed: { liveBmcTime() { if (!this.$store.getters['global/liveBmcTime']) { @@ -42,6 +47,15 @@ export default { } return new Date(this.$store.getters['global/liveBmcTime']); }, + liveClock() { + return this.$store.getters['global/liveClock']; + }, + timezone() { + return this.localOffset(); + }, + isUtcDisplay() { + return this.$store.getters['global/isUtcDisplay']; + }, }, created() { Promise.all([this.$store.dispatch('global/getBmcTime')]).finally(() => { |