This commit is contained in:
SeekDaSky 2017-12-08 02:45:23 +01:00
parent f468536e13
commit 3c68e0a100
2 changed files with 3 additions and 3 deletions

View File

@ -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 )

View File

@ -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 )