Format date

This commit is contained in:
Antonio J. Delgado 2024-08-04 09:06:35 +03:00
parent e453127ddb
commit 5ed3568436

View file

@ -42,8 +42,8 @@
</DIV>
<!-- creation_date -->
<DIV STYLE='font-size: 12px;'>
{% set created_date = time.strptime(data['created_at'], '%Y-%m-%dT%H:%M:%S') %}
{{ created_date.strftime('%Y-%m-%d %H:%M %z') }}
{% set created_date = time.strptime(data['created_at'], '%Y-%m-%dT%H:%M:%S.%fZ') %}
{{ time.strftime('%Y-%m-%d %H:%M:%S %zUTC', created_date) }}
</DIV>
<!-- content block -->
<DIV STYLE='font-size: 24px;'>
@ -87,8 +87,8 @@
</DIV>
<!-- reply_creation_date -->
<DIV STYLE='font-size: 12px;'>
{% set created_date = time.strptime(data['reply']['created_at'], '%Y-%m-%dT%H:%M:%S') %}
{{ created_date.strftime('%Y-%m-%d %H:%M %z') }}
{% set created_date = time.strptime(data['reply']['created_at'], '%Y-%m-%dT%H:%M:%S.%fZ') %}
{{ time.strftime('%Y-%m-%d %H:%M:%S %zUTC', created_date) }}
</DIV>
<!-- reply_content_bloc -->
<DIV STYLE='font-size: 24px;'>
@ -134,8 +134,8 @@
</DIV>
<!-- reblog_creation_date -->
<DIV STYLE='font-size: 12px;'>
{% set created_date = time.strptime(data['reblog']['created_at'], '%Y-%m-%dT%H:%M:%S') %}
{{ created_date.strftime('%Y-%m-%d %H:%M %z') }}
{% set created_date = time.strptime(data['reblog']['created_at'], '%Y-%m-%dT%H:%M:%S.%fZ') %}
{{ time.strftime('%Y-%m-%d %H:%M:%S %zUTC', created_date) }}
</DIV>
<!-- reblog_content_bloc -->
<DIV STYLE='font-size: 24px;'>