Skip to content

Commit

Permalink
Update browser version
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanoehlman committed Jan 2, 2014
1 parent 9a649ff commit 53956d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dist/recurring-date.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function RecurringDate (pattern, date_format) {
this.nth = parseInt(pattern.nth);
this.days = (pattern.days) ? pattern.days.sort() : [];

this.date_format = date_format || 'MM/dd/yyyy';
this.date_format = date_format || 'MM/DD/YYYY';
}

// tries to describe the pattern in plain english
Expand Down Expand Up @@ -87,8 +87,8 @@ RecurringDate.prototype.describe = function () {

t.push('starting on', this.start.toString(this.date_format));

if (this.end_condition == 'until') {
t.push('until', this.until.toString(this.date_format));
if (this.end_condition == 'until') {
t.push('until', moment(this.until).format(this.date_format));
} else if (this.end_condition == 'for') {
t.push('for', this.rfor, 'occurrences');
}
Expand Down

0 comments on commit 53956d6

Please sign in to comment.