Improved date display of "Track date only"-chores (never show the time part for them)

This commit is contained in:
Bernd Bestel
2019-09-14 13:05:36 +02:00
parent a4454f825a
commit 26ebeec74f
3 changed files with 16 additions and 2 deletions

View File

@@ -301,7 +301,7 @@ RefreshContextualTimeago = function()
var timestamp = element.attr("datetime");
var isNever = timestamp && timestamp.substring(0, 10) == "2999-12-31";
var isToday = timestamp && timestamp.length == 10 && timestamp.substring(0, 10) == moment().format("YYYY-MM-DD");
var isToday = timestamp && timestamp.substring(0, 10) == moment().format("YYYY-MM-DD");
var isDateWithoutTime = element.hasClass("timeago-date-only");
if (isNever)