Fixed date for events, needed moment.unix()
parent
497f694b71
commit
c7ad402339
|
@ -40,6 +40,9 @@
|
|||
<div class="col-sm-6 col-md-3 busses">
|
||||
</div>
|
||||
|
||||
<div class="clearfix visible-sm-block">
|
||||
</div>
|
||||
|
||||
<div class="col-sm-6 col-md-3 cfl">
|
||||
</div>
|
||||
|
||||
|
|
|
@ -255,7 +255,7 @@ function l2events() {
|
|||
|
||||
var l2event_ob = events.results[l2event_name];
|
||||
|
||||
output += '<h1>' + l2event_name + ' <small>' + moment(l2event_ob.printouts.startdate, "YYYY-MM-DD HH:mm:ss").format('dddd, D MMMM HH:mm') + '</small></h1>' + l2event_ob.printouts['Has description'][0];
|
||||
output += '<h1>' + l2event_name + ' <small>' + moment.unix(l2event_ob.printouts.StartDate, "YYYY-MM-DD HH:mm:ss").format('dddd, D MMMM HH:mm') + '</small></h1>' + l2event_ob.printouts['Has description'][0];
|
||||
|
||||
};
|
||||
output += "</div>";
|
||||
|
|
Loading…
Reference in New Issue