ui-preview-fixes
dgtlmoon 7 months ago
parent 3d3654c2c1
commit 1e8e8e44a1

@ -124,7 +124,7 @@ def _jinja2_filter_datetime(watch_obj, format="%Y-%m-%d %H:%M:%S"):
@app.template_filter('format_timestamp_timeago')
def _jinja2_filter_datetimestamp(timestamp, format="%Y-%m-%d %H:%M:%S"):
if timestamp == False:
if not timestamp:
return 'Not yet'
return timeago.format(int(timestamp), time.time())

Loading…
Cancel
Save