On November 12th, 2008 Anonymous (not verified) says:
The problem appear when the month to be shown croses a daylight saving change. The range generation which builds the month does not take into account the change in DST and so it never arrives to the upper date
In order to correct this I have to modify the succ() function in the Date object (inside scal.js). Here is the correct code (can be added at the end of scal.js):
Object.extend(Date.prototype, {
succ: function(){
var sd = new Date(0);
sd.setUTCFullYear(this.getUTCFullYear(),this.getUTCMonth(),this.getUTCDate()+1);
sd.setUTCHours(this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds(),this.getUTCMilliseconds());
return sd;
}
});
reason of the problem
The problem appear when the month to be shown croses a daylight saving change. The range generation which builds the month does not take into account the change in DST and so it never arrives to the upper date
In order to correct this I have to modify the succ() function in the Date object (inside scal.js). Here is the correct code (can be added at the end of scal.js):
Object.extend(Date.prototype, {
succ: function(){
var sd = new Date(0);
sd.setUTCFullYear(this.getUTCFullYear(),this.getUTCMonth(),this.getUTCDate()+1);
sd.setUTCHours(this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds(),this.getUTCMilliseconds());
return sd;
}
});