Noticias de Medioambiente, Movilidad y Transporte

 

An error occurred while processing the template.
The string doesn't match the expected date/time/date-time format. The string to parse was: "". The expected format was: "ISO 8601 (subset) date".
The nested reason given follows:
The value didn't match the expected pattern: (-?[0-9]{4,})-([0-9]{2})-([0-9]{2}) or (-?[0-9]{4,}?)([0-9]{2})([0-9]{2})

----
FTL stack trace ("~" means nesting-related):
	- Failed at: ${dateStr?trim?date.iso?string("dd MM...  [in template "20101#20128#93615" at line 70, column 31]
----
1<#include "${templatesPath}/ASSETSMACRO"/> 
2 
3<#if entries?has_content> 
4      
5    <#assign serviceContext = staticUtil["com.liferay.portal.kernel.service.ServiceContextThreadLocal"].getServiceContext()> 
6	<#assign httpServletRequest = serviceContext.getRequest()> 
7	<#assign categoryId = (httpServletRequest.getParameter('p_r_p_categoryId')?html)!''> 
8       
9<#list entries as entry> 
10 
11	<@assetsMacro assetEntry=entry /> 
12 
13    <#assign className = renderer.getClassName()> 
14    <#if className == "com.liferay.journal.model.JournalArticle"> 
15     
16        <#assign imagen2 = docXml.valueOf("//dynamic-element[@name='featuredImage']/dynamic-content/text()") /> 
17	    <#assign imageJSON2 = jsonFactoryUtil.createJSONObject(imagen2)> 
18	    <#if imageJSON2.fileEntryId??> 
19	        <#attempt> 
20	        <#assign fileEntry2 = DLFileEntryLocalServiceUtil.getFileEntry(imageJSON2.fileEntryId?number)> 
21	        <#recover> 
22	         
23	        </#recover> 
24	    </#if> 
25     
26	    <#if entry?index==0 && (categoryId=="" || categoryId=="0")> 
27    		<div class="highlight-news"> 
28			    <div class="row"> 
29			        <div class="col-12 col-sm-6"> 
30			            <div class="news-item"> 
31    	<#elseif (entry?index==1 || entry?index==2 || entry?index==3) && (categoryId=="" || categoryId=="0")> 
32    		<div class="col-12 col-sm-6"> 
33	            <div class="news-item"> 
34    	<#elseif entry?index==4 && (categoryId=="" || categoryId=="0")> 
35    		<div class="news-list"> 
36			    <div class="row"> 
37			        <div class="col-12 col-sm-6 col-lg-4"> 
38			            <div class="news-item"> 
39		<#elseif (entry?index==0 && categoryId!="" && categoryId!="0")> 
40			<div class="news-list"> 
41			    <div class="row"> 
42			        <div class="col-12 col-sm-6 col-lg-4"> 
43			            <div class="news-item"> 
44		<#else> 
45    		<div class="col-12 col-sm-6 col-lg-4"> 
46	            <div class="news-item"> 
47    	</#if> 
48    	 
49    	<div class="image-container"> 
50            <#if  imageJSON2?? && imageJSON2.fileEntryId??> 
51    	        <@custom_adaptative maxResolution=maxResolutionSmallImage  
52                repositoryId=fileEntry2.getRepositoryId() folderId=fileEntry2.getFolderId()  
53                fileEntryId=fileEntry2.getFileEntryId() title=fileEntry2.getTitle() uuid=fileEntry2.getUuid() alt=title thumbnail=0/> 
54            <#else> 
55		        <img src="/documents/20124/36071/Palacio+Ferrera.jpg/8b513545-f3ec-c383-aeb4-4a6a2125e677?version=2.0&t=1600352554537" loading="lazy"> 
56   	        </#if>              
57        </div> 
58        <div class="info"> 
59            <#if categories?has_content> 
60              	<#assign catId = categories[0].getCategoryId()> 
61              	<#if catPropertyLocalService.getCategoryProperty(catId?number, 'color')?has_content> 
62          			<#assign catProps = catPropertyLocalService.getCategoryProperty(catId?number, 'color')> 
63          			<#assign color=catProps.getValue()> 
64           		</#if> 
65				<span class="category ${color} color-white">${categories[0].getName()}</span> 
66			</#if> 
67            <h2 class="title"> 
68                <a href="${viewURL}">${title}</a> 
69            </h2> 
70            <div class="date">${dateStr?trim?date.iso?string("dd MMMM yyyy")}</div> 
71        </div>         
72         
73        <#if (entry?index==0 || entry?index==1 || entry?index==2) && (categoryId=="" || categoryId=="0")> 
74			            </div> 
75			        </div> 
76    	<#elseif (entry?index==3 && (categoryId=="" || categoryId=="0")) || !entry?has_next> 
77			            </div> 
78			        </div> 
79			    </div> 
80			</div> 
81		<#else> 
82	            </div> 
83	        </div> 
84    	</#if> 
85         
86    </#if> 
87</#list> 
88 
89</#if>