Skip to content

Commit dc260ad

Browse files
committed
Check for empty value in localtime filter
1 parent 6e76046 commit dc260ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bolt/templates/jinja/filters.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def localtime_filter(value, timezone=None):
1111
if not value:
1212
# Without this, we get the current localtime
1313
# which doesn't make sense as a filter
14-
return ""
14+
return None
1515
return localtime(value, timezone)
1616

1717

0 commit comments

Comments
 (0)