From 12e98d11fad29924dc7ec4aec8b83480cbc5e9d6 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Wed, 18 Oct 2017 20:51:19 +0300 Subject: Show actual date and time --- Geshem.vue | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'Geshem.vue') diff --git a/Geshem.vue b/Geshem.vue index 897f88f..8f9bba0 100644 --- a/Geshem.vue +++ b/Geshem.vue @@ -1,7 +1,7 @@ @@ -45,6 +45,16 @@ }) } }, + computed: { + date: function () { + var d = this.imgs[this.res][7-this.slider].substr(0, 8); + return `${d.substr(0, 4)}-${d.substr(4, 2)}-${d.substr(6, 2)}`; + }, + time: function () { + var t = this.imgs[this.res][7-this.slider].substr(9, 6); + return `${t.substr(0, 2)}:${t.substr(2, 2)}`; + } + }, created: function () { var vm = this; this.map.on('style.load', function () { -- cgit v1.3.1