Skip to content

Commit 6b4f7af

Browse files
committed
Merge pull request #25 from fampinheiro/patch-1
Remove moment deprecation warning
2 parents 450dcad + 36d0e41 commit 6b4f7af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: moment-recur.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -695,10 +695,9 @@
695695
if (this.tz && typeof(moment.tz) == 'function' ) {
696696
return moment.tz(this.format('YYYY/MM/DD'), 'UTC');
697697
} else {
698-
return this.hours(0).minutes(0).seconds(0).milliseconds(0).add('minute',this.utcOffset()).utcOffset(0);
698+
return this.hours(0).minutes(0).seconds(0).milliseconds(0).add(this.utcOffset(), "minute").utcOffset(0);
699699
}
700700
};
701701

702-
703702
return moment;
704703
}));

0 commit comments

Comments
 (0)