Skip to content

Commit 9cc7fb7

Browse files
committed
Candidate fix for issue 239
1 parent 2f11ad8 commit 9cc7fb7

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/parse/promise.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ export const parsePromise = ({
3333
let { eventTitle, isAllDay, startDate } = parseSherlock({ text, timezone })
3434

3535
if ( moment(startDate).isBefore(moment().subtract(1, 'years')) ) {
36+
log.debug('Caught and fixed promise with old parsed start date of:', startDate)
3637
startDate = null; // clear startDate if more than a year ago
3738
}
3839

0 commit comments

Comments
 (0)