Always show "Track date only" shore execution times without the time part

This commit is contained in:
Bernd Bestel
2019-07-07 19:38:57 +02:00
parent 13c432b0cf
commit 6e3407b157
4 changed files with 12 additions and 5 deletions

View File

@@ -302,6 +302,7 @@ RefreshContextualTimeago = function()
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 isDateWithoutTime = element.hasClass("timeago-date-only");
if (isNever)
{
@@ -315,6 +316,11 @@ RefreshContextualTimeago = function()
{
element.timeago("update", timestamp);
}
if (isDateWithoutTime)
{
element.prev().text(element.prev().text().substring(0, 10));
}
});
}
RefreshContextualTimeago();