From 9cf6c7710915540829eaf6b0f14a290c09d104ad Mon Sep 17 00:00:00 2001 From: Kaitlin Newson Date: Thu, 10 Oct 2024 13:18:49 -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 9b62c94a57f..240c2ff2a74 100644 --- a/templates/frontend/objects/monograph_full.tpl +++ b/templates/frontend/objects/monograph_full.tpl @@ -403,7 +403,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"}