Commit 5face40b authored by Sean Hammond's avatar Sean Hammond

Replace "n hours ago" with "n hr"

parent fad6d7f3
......@@ -14,7 +14,7 @@ var FIXTURES_TO_FUZZY_STRING = [
[49, '49 sec'],
[minute + 5, 'a minute ago'],
[3 * minute + 5, '3 min'],
[4 * hour, '4 hours ago'],
[4 * hour, '4 hr'],
[27 * hour, 'a day ago'],
[3 * day + 30 * minute, '3 days ago'],
[6 * month + 2 * day, '6 months ago'],
......
......@@ -62,8 +62,8 @@ function nMin(date, now) {
return '{} min'.replace('{}', Math.floor(delta(date, now) / minute));
}
function nHoursAgo(date, now) {
return '{} hours ago'.replace('{}', Math.floor(delta(date, now) / hour));
function nHr(date, now) {
return '{} hr'.replace('{}', Math.floor(delta(date, now) / hour));
}
function nDaysAgo(date, now) {
......@@ -84,7 +84,7 @@ var BREAKPOINTS = [
[lessThanTwoMinutesAgo, function () {return 'a minute ago';}, minute],
[lessThanOneHourAgo, nMin, minute],
[lessThanTwoHoursAgo, function () {return 'an hour ago';}, hour],
[lessThanOneDayAgo, nHoursAgo, hour],
[lessThanOneDayAgo, nHr, hour],
[lessThanTwoDaysAgo, function () {return 'a day ago';}, day],
[lessThanThirtyDaysAgo, nDaysAgo, day],
[lessThanOneYearAgo, nMonthsAgo, month],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment