Ticket #4285: ui.datepicker.week-fix.diff

File ui.datepicker.week-fix.diff, 401 bytes (added by scarstens, 11 years ago)

Diff

  • ui.datepicker.

    old new  
    844844                                return 1;
    845845                        }
    846846                }
    847                 return Math.floor(((checkDate - firstMon) / 86400000) / 7) + 1; // Weeks to given date
     847                return Math.floor(Math.round((checkDate - firstMon) / 86400000) / 7) + 1; // Weeks to given date
    848848        },
    849849
    850850        /* Parse a string value into a date object.