You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is a fix for various issues. As I didn't want to join the project for
just publishing a patch, I'm posting it here.
What's fixed :
* Leap year
* IE colSpan
* Month tables are now sorted
Here is the diff :
98,118c99,101
< // sorts years and months then displays it
< var years = new Array();
< for(var year in globalDateHash) {
< years[years.length] = year;
< }
< years.sort(function (a, b) { return b - a; });
<
< var year;
< var month;
< var months;
< for (var i = 0; i < years.length; i++) {
< year = years[i];
< months = new Array();
< for (var month in globalDateHash[year]) {
< months[months.length] = month;
< }
< months.sort(function(a, b) { return b - a; });
<
< for(var j = 0; j < months.length; j++) {
< month = months[j];
<
---
>
> for (year in globalDateHash) {
> for (month in globalDateHash[year]) {
168a152
> // TODO deal with leap year
170,174c154
< if(month == 2 && (year % 4 == 0) && (year % 100 != 0)) { // deals with
leap year
< return 29;
< } else {
< return monthLength[month - 1];
< }
---
> return monthLength[month - 1];
223d202
< titleTD.colSpan = 7; // FIX for IE
Original issue reported on code.google.com by [email protected] on 8 Nov 2007 at 12:34
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 8 Nov 2007 at 12:34The text was updated successfully, but these errors were encountered: