mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 11:27:03 +00:00
Improved date display of "Track date only"-chores (never show the time part for them)
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user