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 0f564ae commit 2aed056
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 @@ -317,7 +317,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 2aed056

Please sign in to comment.