Commit bbd29d4b authored by Raph El's avatar Raph El

Hotfix

parent 35d2ceb8
......@@ -15,7 +15,7 @@ var agenda = {
'<div class="dayEvent col-xs-12">'+
'<h2 class="text-white date" style="text-transform:inherit;padding-left:15px;">'+
'<i class="fa fa-angle-down"></i> <span class="date-label">'+
moment(startMoment).locale("fr").format('dddd DD MMMM') +
moment(startMoment).local().locale("fr").format('dddd DD MMMM') +
'</span></h2>'+
'</div>'+
'</div>';
......@@ -28,7 +28,7 @@ var agenda = {
},
getStartMoment : function(day){
console.log("agenda.getStartMoment", day);
return startMoment = moment(STARTDATE).set('date', moment(STARTDATE).get('date')+day).format();
return startMoment = moment(STARTDATE).local().set('date', moment(STARTDATE).get('date')+day).format();
},
searchDay : function(day){
console.log("agenda.searchDay", day);
......@@ -56,14 +56,14 @@ var agenda = {
//console.log("calculateAgendaWindow ok");
var today = new Date();
var todayMoment = moment().seconds(0).minute(0).hour(0);
var todayMoment = moment().local().seconds(0).minute(0).hour(0);
mylog.log("directory.js calculateAgendaWindow today", typeof today, today);
mylog.log("directory.js calculateAgendaWindow today", typeof todayMoment, todayMoment, todayMoment.valueOf());
today = new Date(today.setSeconds(0));
today = new Date(today.setMinutes(0));
today = new Date(today.setHours(0));
var todayUTC0 = moment(todayMoment.format()).utcOffset("+00:00");
STARTDATE = moment(todayUTC0.format()).valueOf();
var todayUTC0 = moment(todayMoment.format()).local().utcOffset("+00:00");
STARTDATE = moment(todayUTC0.format()).local().valueOf();
mylog.log("directory.js calculateAgendaWindow today2", typeof today, today);
mylog.log("directory.js calculateAgendaWindow todayMoment", typeof todayMoment, todayMoment.format(), todayMoment.valueOf());
mylog.log("directory.js calculateAgendaWindow todayUTC0", typeof todayUTC0, todayUTC0, todayUTC0.format(), todayUTC0.valueOf());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment