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