blob: f3ccba1ef5332876d8a8ec973e740235b21402af (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<template>
<section id="now" class="plugin">
<div class="table-row">
<div class="table-cell text-left">{{ localDate(date_iso) }}</div>
</div>
</section>
</template>
<script>
export default {
props: {
data: {
type: Object
}
},
computed: {
date_iso() {
return this.data.stats['now']['iso'];
}
},
methods: {
localDate(date) {
return new Date(date).toLocaleString();
}
}
};
</script>
|