Re: DateTimeFormat - format month bug

2009-09-22 Thread MiSt

Reported as http://code.google.com/p/google-web-toolkit/issues/detail?id=4069
--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



DateTimeFormat - format month bug

2009-09-21 Thread MiSt

DateTimeFormat takes always DateTimeConstants.standaloneMonths() for
formatting months this produce wrong date format in languages where
DateTimeConstants.standaloneMonths()!=DateTimeConstants.months()

Form example in polish locale (pl)


String s = DateTimeFormat.getLongDateFormat()
.format(new Date());

s = 21 wrzesień 2009 - incorrect !! should be 21 września 2009

I think this is a bug, method

private void formatMonth(StringBuffer buf, int count, Date date)

from DateTimeFormat should take DateTimeConstants.months() not
DateTimeConstants.standaloneMonths()

Could someone confirm this ?

--~--~-~--~~~---~--~~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---