diff --git a/view/vue/container/emergency.vue b/view/vue/container/emergency.vue index 73687ad..e899f72 100644 --- a/view/vue/container/emergency.vue +++ b/view/vue/container/emergency.vue @@ -30,8 +30,8 @@ export default { }; }, methods: { local_date: function(id){ - /* (1) Get current date */ - var cur = new Date( gstore.data.notif.emergency.data[id].timestamp ); + /* (1) Get current date (convert unix timestamp to javascript timestamp */ + var cur = new Date( gstore.data.notif.emergency.data[id].timestamp * 1000); /* (2) First line -> show whole date */ if( id < 1 ) diff --git a/view/vue/container/event.vue b/view/vue/container/event.vue index 91fad1f..f166ed8 100644 --- a/view/vue/container/event.vue +++ b/view/vue/container/event.vue @@ -28,7 +28,7 @@ export default { methods: { local_date: function(id){ /* (1) Get current date */ - var cur = new Date( gstore.data.notif.event.data[id].timestamp ); + var cur = new Date( gstore.data.notif.event.data[id].timestamp * 1000 ); /* (2) First line -> show whole date */ if( id < 1 )