Skip to content

Commit dd17e55

Browse files
committed
Merge pull request rmm5t#183 from Nyholm/patch-1
Fixed bug with cutoff and allowFuture
2 parents cb1b0fe + 6822da8 commit dd17e55

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.timeago.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
var $s = $t.settings;
180180

181181
if (!isNaN(data.datetime)) {
182-
if ( $s.cutoff == 0 || distance(data.datetime) < $s.cutoff) {
182+
if ( $s.cutoff == 0 || Math.abs(distance(data.datetime)) < $s.cutoff) {
183183
$(this).text(inWords(data.datetime));
184184
}
185185
}

0 commit comments

Comments
 (0)