Skip to content

Commit

Permalink
Merge pull request #1724 from kaitlinnewson/10169-3_3_0
Browse files Browse the repository at this point in the history
pkp/pkp-lib#10169 fix forthcoming message on monograph landing page
  • Loading branch information
bozana authored Oct 21, 2024
2 parents cf45b31 + 9cf6c77 commit d14c709
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 d14c709

Please sign in to comment.