Skip to content

Commit

Permalink
Merge pull request #1308 from helsingborg-stad/fix/compressed-posts-a…
Browse files Browse the repository at this point in the history
…rchive-date

fix: compressed posts archive date
  • Loading branch information
NiclasNorin authored Feb 3, 2025
2 parents ddc8ba4 + 3ca0438 commit 1ce5723
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions views/v3/partials/post/post-compressed.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@
@typography(['variant' => 'meta', 'element' => 'p', 'classList' => ['archive-compressed__date', 'u-margin__top--4']])
{{$lang->publish}}:
@date([
'timestamp' => $post->archiveDate
'action' => 'formatDate',
'timestamp' => $post->archiveDate,
'format' => $post->archiveDateFormat
])
@enddate
@endtypography
Expand All @@ -35,7 +37,8 @@
{{$lang->publish}}:
@date([
'action' => 'formatDate',
'timestamp' => $post->getPublishedTime()
'timestamp' => $post->getPublishedTime(),
'format' => $post->archiveDateFormat
])
@enddate
@endtypography
Expand All @@ -44,7 +47,8 @@
{{$lang->updated}}:
@date([
'action' => 'formatDate',
'timestamp' => $post->getModifiedTime()
'timestamp' => $post->getModifiedTime(),
'format' => $post->archiveDateFormat
])
@enddate
@endtypography
Expand Down

0 comments on commit 1ce5723

Please sign in to comment.