Maybe we could take this patch as an opportunity to remove this ugly arbitrary 10-day limit and add an optional `maxDiff` parameter to this function:

```javascript
function prettyDate(time, useCompactFormat, maxDiff) {
  maxDiff = maxdiff || 86400 * 10; // default = 10 days
  // […]

  if (secDiff > maxDiff) { // too far: return an absolute date 
    return localeFormat(new Date(time), '%x'); 
  }

  // […]
}
```