Fixed date for events, needed moment.unix()

gh-pages
Cyrille Médard de Chardon 2014-09-20 18:52:45 +02:00
parent 497f694b71
commit c7ad402339
2 changed files with 4 additions and 1 deletions

View File

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

View File

@ -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>";