Remove timezone from date for event metadata
parent
a792cdd17a
commit
98b549b955
|
|
@ -148,7 +148,7 @@ function getEventMeta(req, res, id){
|
||||||
}
|
}
|
||||||
|
|
||||||
function dateToString(dte){
|
function dateToString(dte){
|
||||||
var val = dte.toLocaleString([],{ timeZone: 'America/Denver', day: 'numeric', month: 'numeric', year: 'numeric', hour: 'numeric', minute:'2-digit'});
|
var val = dte.toLocaleString([],{ day: 'numeric', month: 'numeric', year: 'numeric', hour: 'numeric', minute:'2-digit'});
|
||||||
console.log(val);
|
console.log(val);
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue