On 04/12/2011 06:05 PM, Florin Jurcovici wrote: > Hi. > > Running the code further below in the playground illustrates the bug. > Essentially, a date field displays "01 Jan 2010" when > getValue().toString() is "01 Jan 2011". The same for 02 jan 2011. It > runs properly for subsequent dates of 2011. > > Essentially, as far as I could check, it seems that whenever the year > starts on thursday or later in the week, for the days before the first > sunday the previous year is displayed, but just in the field, but only > if the format for the date field is "dd MMM YYYY". > > Should I file a bug report?
No, you should read the docs ;). As you can see here: http://www.unicode.org/reports/tr35/#Date_Format_Patterns the "Y" format character signifies year-of-week. Meaning, it provides the year the given week started in, Thursday being the turning point (as unbelievable as it might seem, there are calendars supporting that). You should see the inverse behaviour in years where the 1st of January falls on, say, a Wednesday: The you should get the equivalent of "31 Dec <new year>" for dates of the equivalent <old year>. If you want something else, use "y" (mind lower-case). T. ------------------------------------------------------------------------------ Forrester Wave Report - Recovery time is now measured in hours and minutes not days. Key insights are discussed in the 2010 Forrester Wave Report as part of an in-depth evaluation of disaster recovery service providers. Forrester found the best-in-class provider in terms of services and vision. Read this report now! http://p.sf.net/sfu/ibm-webcastpromo _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
