diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2008-12-14 21:00:52 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2008-12-14 21:00:52 +0100 |
commit | 02579a31ef9735dadacd25de12eccfd395b3a0e4 (patch) | |
tree | a6d7dfb0440e393818775e29ae5d567e534070e0 | |
parent | 6bf8783543eb07289419cf7804d5a08bc939d91e (diff) |
bug in datepoll when month started with sunday
-rw-r--r-- | datepoll.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/datepoll.rb b/datepoll.rb index a56c8a1..01a5b88 100644 --- a/datepoll.rb +++ b/datepoll.rb @@ -74,7 +74,7 @@ END 7.times{|i| ret += "<th>#{Date::ABBR_DAYNAMES[(i+1)%7]}</th>" } ret += "</tr><tr>\n" - (startdate.wday-1).times{ + ((startdate.wday+7-1)%7).times{ ret += "<td></td>" } d = startdate |