diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.ts b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.ts index 1fce8e89..4657a0d9 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.ts +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.ts @@ -6,9 +6,9 @@ export default class Clock extends Vue { today: Date = new Date(); - mount() { + mounted() { let $this = this; - setTimeout(() => { + setInterval(() => { $this.today = new Date(); }, 1000) } diff --git a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.vue b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.vue index 801ed85b..a865edd9 100644 --- a/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.vue +++ b/Thermo.Active/wwwroot/src/app_modules_thermo/dashboard/base-components/clock.vue @@ -4,7 +4,7 @@ {{today | date('dddd DD')}} {{today | date('MMMM')}} - +