add timezone to dates

This commit is contained in:
Christoph J. Scherr 2023-10-02 11:30:42 +02:00
parent d287b3291d
commit c59d243cc0
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
date = "2023-10-02 09:59:00.127936"
update = "2023-10-02 09:59:00.127936"
update = "2023-10-02 10:59:00.127936"
keywords = ["bash"]
category = "Guide"
featured = true

View File

@ -11,7 +11,7 @@ logger = logging.getLogger(__name__)
register = Library()
@register.simple_tag
def format_time(timestamp: datetime, format: str = "%F %H:%M:%S") -> str:
def format_time(timestamp: datetime, format: str = "%F %H:%M:%S %Z") -> str:
return timestamp.strftime(format)
@register.simple_tag(takes_context=True)