You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2008/10/14 01:53:44 UTC

[jira] Assigned: (TAP5-224) DateField shows day abbreviation labels in wrong order

     [ https://issues.apache.org/jira/browse/TAP5-224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship reassigned TAP5-224:
-----------------------------------------

    Assignee: Howard M. Lewis Ship

> DateField shows day abbreviation labels in wrong order
> ------------------------------------------------------
>
>                 Key: TAP5-224
>                 URL: https://issues.apache.org/jira/browse/TAP5-224
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.0.15
>            Reporter: Ville Virtanen
>            Assignee: Howard M. Lewis Ship
>             Fix For: 5.0.16
>
>
> Note: This affects only labels, everything else is ok.
> It seems that DateField wants to always show Sunday as the starting day, it should be determined as instructed in: 
> http://java.sun.com/javase/6/docs/api/java/util/Calendar.html#getFirstDayOfWeek()
> This bug can be seen with Locale France or Finnish (Where Monday starts the week.).
> Currently datefield is coded like this, but it should take into account that sunday may or may not be the first day of week. (Line 257.)
>            String[] weekdays = symbols.getWeekdays();
>             for (int i = Calendar.SUNDAY; i <= Calendar.SATURDAY; i++)
>             {
>                 days.append(weekdays[i].substring(0, 1));
>             }
>             spec.put("days", days.toString().toLowerCase(locale));

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org