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;
}
});

Reply

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options