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.
Loading
Please register or sign in to comment