Skip to content

Commit

Permalink
pkp/pkp-lib#10169 fix forthcoming message on monograph landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson committed Oct 16, 2024
1 parent f6d1f09 commit 9cf6c77
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion templates/frontend/objects/monograph_full.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@
<div class="item date_published">
<div class="sub_item">
<h2 class="label">
{if $publication->getData('datePublished')|date_format:$dateFormatShort > $smarty.now|date_format:$dateFormatShort}
{* Use Y-m-d to compare dates instead of customizable date formats (pkp-lib#10169) *}
{if $publication->getData('datePublished')|date_format:"Y-m-d" > $smarty.now|date_format:"Y-m-d"}
{translate key="catalog.forthcoming"}
{else}
{translate key="catalog.published"}
Expand Down

0 comments on commit 9cf6c77

Please sign in to comment.