Opened 10 years ago

Closed 10 years ago

#15683 closed defect (worksforme)

Bug in dojo.cldr.supplemental.getFirstDayOfWeek for AU

Reported by: Pete Smith Owned by: Adam Peller
Priority: undecided Milestone: tbd
Component: Date Version: 1.7.3
Keywords: Cc:
Blocked By: Blocking:


We are doing en-au for our fair app. I noticed my calendar came in as monday as the first day of week. I figured it was doing something cool. Problem is in en-au they start on Sunday. Here is the proof from the site:

<!-- Note, this firstDay is for the first day of the week in a calendar page view. --> <!-- The first workday of the week (after the weekend) is distinct, and can be determined as the day after the weekendEnd day. --> <firstDay day="mon" territories="001 AD AI AL AM AN AT AX AZ BA BE BG BM BN CH CL CM CR CY CZ DE DK EC EE ES FI FJ FO FR GB GE GF GP GR HR HU IS IT KG KZ LB LI LK LT LU LV MC MD ME MK MN MQ MY NL NO PL PT RE RO RS RU SE SI SK SM TJ TM TR UA UY UZ VA VN" /> <firstDay day="fri" territories="BD MV" /> <firstDay day="sat" territories="AE AF BH DJ DZ EG IQ IR JO KW LY MA OM QA SA SD SY YE" /> <firstDay day="sun" territories="AG AR AS AU BR BS BT BW BY BZ CA CN CO DM DO ET GT GU HK HN ID IE IL IN JM JP KE KH KR LA MH MM MO MT MX MZ NI NP NZ PA PE PH PK PR PY SG SV TH TN TT TW UM US VE VI WS ZA ZW" /> <firstDay day="sun" territories="GB" alt="variant" references="Shorter Oxford Dictionary (5th edition, 2002)"/>

And if I run:

dojo/getFirstDayOfWeek('au') it returns 1. I simply added au:0 to the firstDay map.

Change History (1)

comment:1 Changed 10 years ago by Adam Peller

Resolution: worksforme
Status: newclosed

we update the code periodically based on what's in (a moving target) trunk has the au:0

Note: See TracTickets for help on using tickets.