jtsage / jtsage-datebox

A multi-mode date and time picker for Bootstrap (3&4), jQueryMobile, Foundation, Bulma, FomanticUI, and UIKit (or others)
http://datebox.jtsage.dev/
Other
474 stars 166 forks source link

calFormatter fmtObj.ISO is not correct. #355

Closed slavap closed 10 years ago

slavap commented 10 years ago

ISO expects month in 1..12, not 0..11 as it's implemented now. So correct code for ISO is:

fmtObj.ISO = fmtObj.Year + "-" + 
    w._zPad(fmtObj.Month + 1) + "-" + 
    w._zPad(fmtObj.Date);
jtsage commented 10 years ago

Huh. I swear I thought I already corrected that once.

Will do.