Skip to content

Commit f82fff2

Browse files
author
Marvel Mathew
committed
Always past if not future
1 parent 68641c4 commit f82fff2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Adapters/Storage/Mongo/MongoTransform.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ function relativeTimeToDate(text, now = new Date()) {
561561
// strip the 'ago' or 'in'
562562
if (future) {
563563
parts = parts.slice(1);
564-
} else if (past) {
564+
} else { // past
565565
parts = parts.slice(0, parts.length - 1);
566566
}
567567

0 commit comments

Comments
 (0)