Hi Vitor,

I could not reproduce your problem. Try the following things...

- change the boolean in PatternDateConverter to 'false' to not respect the 
client time zone. does this change the faulty behavior?
- what locale are you using in your application? try 'log.info("locale = " + 
Session.get().getLocale())' to see the current value used for date conversion
- does the behavior depend on the browser? try firefox, chrome, ie, etc. to 
check this



Am 21.06.2011 um 23:16 schrieb Vitor Granzinoli Vellozo:

> 
> 
> Wicketers,
> 
> 
> 
> I found a problem with DateTextField, when a date comes like 11/10/2010
> (dd/MM/yyyy) to be showed at
> 
> a page, and it shows 10/10/2010, it shows a date decreased. The same
> ocurrs if the date is 12/10/2010.
> 
> 
> 
> It ocurrs with dates near 10/10/2010. I also fixed dates manually and it
> doesn't change, it's very strange
> 
> and I need you help.
> 
> 
> 
> Below, the code:
> 
> 
> 
> DateTextField dateTF = new DateTextField("finalDate", new
> PropertyModel(someObject.getFinalDate(), "finalDate"), new
> PatternDateConverter("dd/MM/yyyy", true));
> 
> dateTF.add(new DatePicker());
> 
> add(dateTF);
> 
> 
> 
> 
> 
> Some idea about?
> 
> 
> 
> Thanks a lot
> 
> Vitor
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to