Merge pull request #3196 from utkarshcmu/custom-time

Timepicker display fixed for now-*
This commit is contained in:
Torkel Ödegaard
2015-11-11 11:28:55 +01:00
2 changed files with 22 additions and 2 deletions

View File

@@ -134,8 +134,12 @@ _.each(rangeOptions, function (frame) {
return from.fromNow() + ' to ' + formatDate(range.to);
}
var res = describeTextRange(range.from);
return res.display;
if (range.to.toString() === 'now') {
var res = describeTextRange(range.from);
return res.display;
}
return range.from.toString() + ' to ' + range.to.toString();
}
export = {