From 2aed05679e064551aa171a5c7f404fd19015fe5f Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Wed, 16 Oct 2024 11:19:10 -0300 Subject: [PATCH] pkp/pkp-lib#10169 fix forthcoming message on monograph landing page --- templates/frontend/objects/monograph_full.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/frontend/objects/monograph_full.tpl b/templates/frontend/objects/monograph_full.tpl index b00a5ab5af9..705594b231a 100644 --- a/templates/frontend/objects/monograph_full.tpl +++ b/templates/frontend/objects/monograph_full.tpl @@ -317,7 +317,8 @@

- {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"}