We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7799d9b commit 5375f17Copy full SHA for 5375f17
src/lib/isAfter.js
@@ -6,7 +6,7 @@ export default function isAfter(str, options) {
6
7
// accessing 'arguments' for backwards compatibility: isAfter(str [, date])
8
// eslint-disable-next-line prefer-rest-params
9
- const date = (typeof options === 'object' ? options.date : arguments[1]) || String(new Date());
+ const date = (typeof options === 'object' ? options.date : arguments[1]) || Date().toString();
10
11
const comparison = toDate(date);
12
const original = toDate(str);
0 commit comments