Skip to content

Commit

Permalink
Merge pull request pkp#1729 from kaitlinnewson/10169-3_4_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 17, 2024
2 parents 0f564ae + 2aed056 commit f7e5034
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 f7e5034

Please sign in to comment.