Commit 2b0018fd authored by Ujvari Gergely's avatar Ujvari Gergely

Removed periods from the end of the fuzzy timestamps (consistently)

parent 0f43fc69
......@@ -16,17 +16,17 @@ fuzzyTime = (date) ->
month = day * 30
if (delta < 30)
fuzzy = 'moments ago.'
fuzzy = 'moments ago'
else if (delta < minute)
fuzzy = delta + ' seconds ago.'
fuzzy = delta + ' seconds ago'
else if (delta < 2 * minute)
fuzzy = 'a minute ago.'
fuzzy = 'a minute ago'
else if (delta < hour)
fuzzy = Math.floor(delta / minute) + ' minutes ago.'
fuzzy = Math.floor(delta / minute) + ' minutes ago'
else if (Math.floor(delta / hour) == 1)
fuzzy = '1 hour ago.'
fuzzy = '1 hour ago'
else if (delta < day)
fuzzy = Math.floor(delta / hour) + ' hours ago.'
fuzzy = Math.floor(delta / hour) + ' hours ago'
else if (delta < day * 2)
fuzzy = 'yesterday'
else if (delta < 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