Skip to content

Commit

Permalink
Merge 20240720-2
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaunonen committed Jul 20, 2024
2 parents d3e9559 + f9f5499 commit 9b3cf95
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kirppu/views/ui_text_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ def _date(value: datetime.datetime | None) -> Lazy:
def wrapped(fmt: str = "SHORT_DATE_FORMAT") -> str:
if value is None:
return ""
if isinstance(value, datetime.date):
return defaultfilters.date(value, fmt)
local_value = _convert_localtime(value)
return defaultfilters.date(local_value.date(), fmt)

Expand Down

0 comments on commit 9b3cf95

Please sign in to comment.