Permalink
Browse files

removing {ddd} etc formatting tokens

  • Loading branch information...
1 parent b4fd0f6 commit cec0dac3468a9a845dd068018c277384fbb16470 @andrewplummer andrewplummer committed Nov 6, 2011
Showing with 7 additions and 11 deletions.
  1. +2 −2 lib/sugar.js
  2. +3 −3 release/sugar-1.1.min.js
  3. +2 −2 release/utf8/sugar-1.1.min.js
  4. +0 −4 unit_tests/environments/sugar/date.js
View
@@ -3767,7 +3767,7 @@
}
},
{
- token: 'd{3,4}|dow|weekday',
+ token: 'dow|weekday',
word: true,
format: function(d, loc, n, t) {
return loc['weekdays'][d.getDay() + (n - 1) * 7];
@@ -3780,7 +3780,7 @@
}
},
{
- token: 'M{3,4}|mon|month',
+ token: 'mon|month',
word: true,
format: function(d, loc, n, len) {
return loc['months'][d.getMonth() + (n - 1) * 12];
View
Oops, something went wrong.
Oops, something went wrong.
@@ -854,8 +854,6 @@ test('Date', function () {
equal(d.format('{12hr}'), '1', 'Date#format | custom formats | 12hr');
equal(d.format('{d}'), '5', 'Date#format | custom formats | d');
equal(d.format('{dd}'), '05', 'Date#format | custom formats | dd');
- equal(d.format('{ddd}'), 'Thu', 'Date#format | custom formats | ddd');
- equal(d.format('{dddd}'), 'Thursday', 'Date#format | custom formats | dddd');
equal(d.format('{date}'), '5', 'Date#format | custom formats | date');
equal(d.format('{day}'), '5', 'Date#format | custom formats | days');
equal(d.format('{dow}'), 'thu', 'Date#format | custom formats | dow');
@@ -864,8 +862,6 @@ test('Date', function () {
equal(d.format('{Weekday}'), 'Thursday', 'Date#format | custom formats | Weekday');
equal(d.format('{M}'), '8', 'Date#format | custom formats | M');
equal(d.format('{MM}'), '08', 'Date#format | custom formats | MM');
- equal(d.format('{MMM}'), 'Aug', 'Date#format | custom formats | MMM');
- equal(d.format('{MMMM}'), 'August', 'Date#format | custom formats | MMMM');
equal(d.format('{month}'), 'august', 'Date#format | custom formats | month');
equal(d.format('{Mon}'), 'Aug', 'Date#format | custom formats | Mon');
equal(d.format('{Month}'), 'August', 'Date#format | custom formats | Month');

0 comments on commit cec0dac

Please sign in to comment.