Skip to content

Commit

Permalink
Fixed weekday mappings, they now use the new format
Browse files Browse the repository at this point in the history
  • Loading branch information
andyearnshaw committed Jun 4, 2013
1 parent 5f81448 commit bd5d152
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Intl.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ var
// Keep internal properties internal
secret = Math.random(),

// CLDR weekday key mappings
weekdays = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'],

// Each constructor prototype should be an instance of the constructor itself, but we
// can't initialise them as such until some locale data has been added, so this is how
// we keep track
Expand Down Expand Up @@ -2353,7 +2350,7 @@ function FormatDateTime(dateTimeFormat, x) {

// For weekdays, we need to refer to our `weekdays` array
case 'weekday':
fv = ca.days[f][weekdays[tm['[['+ p +']]']]];
fv = ca.days[f][tm['[['+ p +']]']];
break;

case 'timeZoneName':
Expand Down
Loading

0 comments on commit bd5d152

Please sign in to comment.