fix clock

This commit is contained in:
=
2020-06-17 17:41:00 +02:00
parent 8858602f9c
commit d030f09709
2 changed files with 3 additions and 3 deletions
@@ -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)
}
@@ -4,7 +4,7 @@
<span>{{today | date('dddd DD')}}</span>
<span>{{today | date('MMMM')}}</span>
</div>
<time>{{today | date('HH:mm')}}</time>
<time>{{today | date('HH:mm:ss')}}</time>
</div>
</template>
<style scoped>