2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00

FIX: Post age time not being translated correctly.

This commit is contained in:
Guo Xiang Tan 2015-08-31 00:11:52 +08:00
parent 322df1862d
commit 50ce95b37d
2 changed files with 4 additions and 3 deletions

View file

@ -91,6 +91,8 @@ test("formating tiny dates", function() {
equal(formatMins(2), "2m");
equal(formatMins(60), "1h");
equal(formatHours(4), "4h");
equal(formatHours(23), "23h");
equal(formatHours(23.5), "1d");
equal(formatDays(1), "1d");
equal(formatDays(14), "14d");
equal(formatDays(15), shortDate(15));