Tuesday, June 7, 2011

DateTimeFormat formatting differs

Hi,

i ' m facing a strange behaviour when i m formatting dates with the
gwt- DateTimeFormat.
Only for some dates (for example 06.05.1039) the days are formatted
wrong. It also edpends on the environment i am running my application:
On Jetty (windows) the dates a formatted correctly - on jboss (unix)
the days a formatted wrong.

I' m using it the folowing way:

DateTimeFormat guiDateFormat = DateTimeFormat.getFormat("dd.MM.yyyy");
String birthDate = guiDateFormat.format(value.getDateOfBirth());

A Date: 06.05.1039 is formatted to 12.05.1039.

Any hinds what i am doing wrong?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate