Format date
This commit is contained in:
parent
e453127ddb
commit
5ed3568436
1 changed files with 6 additions and 6 deletions
|
@ -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;'>
|
||||
|
|
Loading…
Reference in a new issue