Commit 2fc3599b authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Improve comments date formatting.

Use round() instead of ceil() when calculating "x units ago". Using
ceil() resulted in:

 - 59 seconds ago --> just now
 - 60 seconds ago --> 1 minute ago
 - 61 seconds ago --> 2 minutes ago

The same happened with other units.  With rounding the 1 minute period
is much larger than just 1 second.
parent 1196a517
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment