if i supply the date pattern "dd/MM/yyyy" the date picker will print wrong date like 10/MM/2009
i noticed sdf.toPattern().toLowerCase() and i thought some one missed to call toLowerCase() on format_ = ((ITextFormatProvider) component).getTextFormat(); i called toLowerCase() and it solved the issue, i didn't dig deep into it. regards dipu On Tue, Feb 17, 2009 at 10:57 AM, Martin Grigorov <[email protected]> wrote: > I could do it but why it should be lower cased ? > What will happen with months (MM)? They will become minutes (mm). Is > this correct ? > > I see there is sdf.toPattern().toLowerCase() below but this seems like a > bug to me. > > Can you give more details because I'm not using this behavior. > > El lun, 16-02-2009 a las 10:00 +0000, Dipu escribió: >> In Wicket Stuff - Jquery - DatePicker - DatePickerBehavior >> >> the following line in the onBind() method >> >> if (component instanceof ITextFormatProvider) { >> format_ = ((ITextFormatProvider) component).getTextFormat(); >> >> should be >> >> if (component instanceof ITextFormatProvider) { >> format_ = ((ITextFormatProvider) >> component).getTextFormat().toLowerCase(); >> >> >> i have created a patch, can some one apply the patch please. >> >> >> regards >> dipu >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
