Skip to content

Commit

Permalink
revert dates back to absolute one
Browse files Browse the repository at this point in the history
  • Loading branch information
szakitibi authored Jun 17, 2024
1 parent c1cb938 commit d6b8463
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions plone/app/layout/viewlets/document_byline.pt
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,7 @@
tal:condition="published"
>
<span i18n:translate="box_published">published</span>
<span tal:content="published"
class="pat-display-time"
data-pat-display-time="from-now: true"
datetime="${published}"
title="${python: context.toLocalizedTime(published, long_format=True)}"
>Published</span>
<span tal:content="python:context.toLocalizedTime(published)">Published</span>
<tal:sep condition="show_modification_date">,</tal:sep>
</span>

Expand All @@ -54,12 +49,9 @@
<span i18n:translate="box_last_modified">
last modified
</span>
<span tal:content="modified"
class="pat-display-time"
data-pat-display-time="from-now: true"
datetime="${modified}"
title="${python: context.toLocalizedTime(modified, long_format=True)}"
>Modified</span>
<span tal:content="python:context.toLocalizedTime(modified)">
Modified
</span>
</span>
</tal:dates>

Expand Down

0 comments on commit d6b8463

Please sign in to comment.