weekdaystart: 1 will give wrong dates

hi,
first thanks for this real cool peace of code!

i have a problem with the weekdaystart parameter.

if i use "weekdaystart:0" everythings fine and e.g. the 13th of november is a thursday
but if i switch "weekdaystart" to 1 (cause here in germany the week starts with monday ;) ), suddenly the 13th of november is a saturday!!!
same problem with other numbers for weekdaystart - they all give (different) wrong weekdays

(i just downloaded the latest svn trunk - same behavior)

thanks for your help,
AinStain

workaround (dirty)

hi,
i found a workaround for myself - dirty, but works for now...

first i set the daynames in other order (starting on monday):


daynames: ['Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag','Sonntag'],

then i set weekdaystarts to "-1" and exactweeks to "false" (otherwise you get empty daycells)


function showcalendars(){
blogcal = new scal(
'blogcal',
updateyear,{
titleformat:'mmmm yyyy',
closebutton:'X',
dayheadlength:2,
weekdaystart: -1,
exactweeks: false,
planner: blogposts
}
);
}

i havent checked if there is somewhere a strange behaviour, maybe with leap years or so, but well, happy for now ;)

problems...

yes, there are problems with this...
if the first day of a month is a sunday, this day is not shown (eg 01.feb.09)

what is the problem with this?!
no one any idea?!

Post new comment

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