Commit 06a440fc authored by Nick Stenning's avatar Nick Stenning

Merge pull request #1974 from hypothesis/1973-year-singular

Use a singular time expression one year
parents 27da8253 c15ed760
......@@ -14,6 +14,7 @@ BREAKPOINTS = [
[2 * day, 'yesterday', day ]
[month, '{} days ago', day ]
[year, '{} months ago', month ]
[2 * year, 'one year ago', year ]
[Infinity, '{} years ago', year ]
]
......
......@@ -17,6 +17,9 @@ FIXTURES_TO_FUZZY_STRING = [
[27 * hour, 'yesterday']
[3 * day + 30 * minute, '3 days ago']
[6 * month + 2 * day, '6 months ago']
[1 * year, 'one year ago']
[1 * year + 2 * month, 'one year ago']
[2 * year, '2 years ago']
[8 * year, '8 years ago']
]
......
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