FNCJ: nova diretoria toma posse e destaca novidades da gestão
Fel uppstod under bearbetning av mallen.
Java method "com.liferay.portal.kernel.util.DateUtil_IW.parseDate(String, String, Locale)" threw an exception when invoked on com.liferay.portal.kernel.util.DateUtil_IW object "com.liferay.portal.kernel.util.DateUtil_IW@548f0b23"; see cause exception in the Java stack trace.
----
FTL stack trace ("~" means nesting-related):
- Failed at: #assign displayDate = dateUtil.parseD... [in template "84729792350735#20119#51062" at line 6, column 1]
---- 1<#assign JournalArticleLocalService=serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService") /> 2<#assign currentArticle=JournalArticleLocalService.getArticle(getterUtil.getLong(groupId), .vars['reserved-article-id'].data) /> 3<#assign currentArticleResourcePrimKey=currentArticle.getResourcePrimKey() /> 4<#assign AssetCategoryLocalService=serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService") /> 5<#assign categories=AssetCategoryLocalService.getCategories("com.liferay.journal.model.JournalArticle", currentArticleResourcePrimKey) /> 6<#assign displayDate=dateUtil.parseDate("EEE, d MMM yyyy HH:mm:ss Z", .vars['reserved-article-create-date'].data, locale)?string("dd/MM/yyyy ' às ' HH'h'mm") /> 7<#assign viewFullURL=themeDisplay.getPortalURL() + "/-/" + .vars['reserved-article-url-title'].data /> 8 9<div class="header-noticia c-mb-32"> 10 <h4 class="mb-1 semi-bold"> 11 Notícia 12 </h4> 13 <h2 class="font-weight-semi-bold text-primary mb-0"> 14 ${.vars['reserved-article-title'].data} 15 </h2> 16 <div class="row border-bottom py-4"> 17 <h5 class="time-text font-weign-medium mb-0 col-md-6 text-left"> 18 Publicado em ${displayDate} 19 </h5> 20 <div class="col-md-6 text-md-right share-social time-text font-weign-medium "> 21 Compartilhe: 22 <a class="px-2 text-decoration-none text-primary" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=${viewFullURL}"> 23 <i class="lab la-facebook-f"></i> 24 </a> 25 <a class="px-2 text-decoration-none text-primary" class="d-none" href="http://twitter.com/intent/tweet?text=${.vars['reserved-article-title'].data}%0AVeja%20mais%20em:&url=${viewFullURL}" target="_blank"> 26 <i class="lab la-twitter"></i> 27 </a> 28 <a class="px-2 text-decoration-none text-primary" href="https://api.whatsapp.com/send?text=${viewFullURL}"> 29 <i class="lab la-whatsapp"></i> 30 </a> 31 <a class="px-2 text-decoration-none text-primary" href="https://www.linkedin.com/shareArticle?mini=true&url=${viewFullURL}"> 32 <i class="lab la-linkedin-in"></i> 33 </a> 34 <a class="px-2 text-decoration-none text-primary" href="#" onclick="copyLink('${friendlyURL}'); return false;"> 35 <i onclick="copiarUrl(event)" class="las la-link"></i> 36 </a> 37 </div> 38 </div> 39</div> 40 41<div class="conteudo-noticia text-body"> 42 <#if (noticia.ConteudoNoticia.getData())??> 43 ${noticia.ConteudoNoticia.getData()} 44 </#if> 45</div> 46 47<div class="mb-5 mt-4"> 48 <h4 class="semi-bold text-gray mb-3 text-body">Categorias</h4> 49 <#if categories?has_content> 50 <#list categories as category> 51 <a href="/web/guest/noticias?p_r_p_categoryId=${category.getCategoryId()}" class="btn btn-primary bg-transparent text-primary mr-2 mb-2" target="_blank"> 52 ${category.name} 53 </a> 54 </#list> 55 <#else> 56 Não possui categoria 57 </#if> 58</div> 59 60<script> 61function copyLink(link) { 62 var tempInput = document.createElement("input"); 63 tempInput.value = link; 64 document.body.appendChild(tempInput); 65 tempInput.select(); 66 tempInput.setSelectionRange(0, 99999); 67 document.execCommand("copy"); 68 document.body.removeChild(tempInput); 69} 70</script> 71 72<style> 73.header-noticia { 74 .time-text { 75 color: var(--gray-300); 76 } 77 78 .component-html img { 79 aspect-ratio: 16 / 9; 80 height: 100%; 81 object-fit: cover; 82 } 83} 84</style>