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 36a662fff7
commit a77594d5bb

View file

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