Fixes #3850 - If no date is set the UI show it's shown as NaN.NaN.NaN.

This commit is contained in:
Rolf Schmidt 2021-11-16 09:52:14 +01:00
parent fb5ad0862b
commit 49162d32d0

View file

@ -300,9 +300,10 @@ class App.Controller extends Spine.Controller
frontendTimeUpdateItem: (item, currentVal) =>
timestamp = item.attr('datetime')
time = @humanTime(timestamp, item.hasClass('escalation'))
return if timestamp is 'null'
# only do dom updates on changes
time = @humanTime(timestamp, item.hasClass('escalation'))
return if time is currentVal
newTitle = App.i18n.translateTimestamp(timestamp)