An error occurred while processing the template.
The string doesn't match the expected date/time/date-time format. The string to parse was: "8/7/26, 9:00 AM". The expected format was: "dd/MM/yy HH:mm".
The nested reason given follows:
Unparseable date: "8/7/26, 9:00 AM"
----
FTL stack trace ("~" means nesting-related):
- Failed at: dataIncioObjeto = CopyOfCopyOfDateTim... [in template "94982050844542#20120#null" at line 12, column 9]
----
1<#assign
2 JournalArticleLocalService = serviceLocator.findService("com.liferay.journal.service.JournalArticleLocalService")
3 categoryLocalService = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")
4 pageUrl = JournalArticle_displayPageURL.getData()!""
5 url = pageUrl?split("?")[0]?remove_ending("/")?split("/")?last
6 articleId = JournalArticleLocalService.getArticleByUrlTitle(groupId, url).getArticleId()
7 journalArticle = JournalArticleLocalService.getArticle(groupId, articleId)
8 articleXml = journalArticle.getDocument().getRootElement()
9 tipoFormato = ""
10 organizacao = ""
11
12 dataIncioObjeto = CopyOfCopyOfDateTime53021494.getData()?datetime("dd/MM/yy HH:mm")
13 categories = categoryLocalService.getCategories("com.liferay.journal.model.JournalArticle", journalArticle.getResourcePrimKey()?number)
14
15 publishDate = (journalArticle.getDisplayDate())!(journalArticle.getCreateDate())
16 publishDate = publishDate?string["dd/MM/yyyy"]
17 modifiedDate = journalArticle.modifiedDate?string["dd/MM/yyyy"]
18 publishName = journalArticle.userName
19>
20<#if CopyOfCopyOfCampo28506483.getData()?has_content>
21 <#assign
22 dataFimObjeto = CopyOfCopyOfCampo28506483.getData()?datetime("dd/MM/yy HH:mm")
23 dataFim = " - " + dataFimObjeto?string("dd/MM/yyyy")
24 horaFim = " - " + dataFimObjeto?string("HH:mm")
25 >
26<#else>
27 <#assign
28 dataFim = ""
29 horaFim = ""
30 >
31</#if>
32
33 <#if Text01630945.getData()?has_content>
34 <#assign organizacao = Text01630945.getData()!"">
35 </#if>
36
37<#list categories as category>
38 <#if category.vocabularyId == 1016787>
39 <#if category.name == "Presencial">
40 <#assign tipoFormato = category.name + " em " + CopyOfCopyOfText50148845.getData()>
41 <#else>
42 <#assign tipoFormato = category.name>
43 </#if>
44 </#if>
45 <#-- if category.vocabularyId == 306321>
46 <#assign organizacao = category.name>
47 </#if -->
48</#list>
49
50<div class="observatorio-eventos col align-items-center">
51
52 <div class="py-4 title">
53 <h4 class="text-center">EVENTOS</h4>
54 <h1 class="text-center">${CopyOfCopyOfText96235608.getData()}</h1>
55 </div>
56
57 <!-- Imagem Legenda Mobile Eventos -->
58 <div class="legenda-mobile d-lg-none">
59 <div>
60 <i class="far fa-calendar-alt"></i>
61 <p>${dataIncioObjeto?string("dd/MM/yyyy")} ${dataFim}</p>
62 </div>
63 <div>
64 <i class="fa-regular fa-clock d-none"></i>
65 <div class="icon-img"><img src='/documents/20117/53667/clock-solid.svg/7a6cc3fe-dd0a-819f-5502-02bad1907595'></div>
66 <p>${dataIncioObjeto?string("HH:mm")} ${horaFim}</p>
67
68 </div>
69 <#if tipoFormato != "">
70 <div>
71 <i class="fa fa-map-marker d-none" aria-hidden="true"></i>
72 <div class="icon-img"><img src="/documents/20117/53667/location.svg/d47612ee-437b-16ba-defc-906054c51ee1"></div>
73 <p>${tipoFormato}</p>
74 </div>
75 </#if>
76 <#if organizacao != "">
77 <div>
78 <p>Organização: ${organizacao}</p>
79 </div>
80 </#if>
81 </div>
82
83 <!-- Imagem Eventos -->
84 <div class="row pb-3 pt-0 pt-lg-3 justify-content-center" style="
85 max-width: 1046px;
86 margin: 0 auto;
87">
88 <div class="col-md-10 px-0">
89 <img class="image-main w-100" src="${CopyOfCopyOfImage67868141.getData()}" alt>
90
91 <!-- Imagem Legenda Desktop Eventos -->
92 <div class="legenda d-none d-lg-block">
93 <div>
94 <i class="far fa-calendar-alt"></i>
95 <p>${dataIncioObjeto?string("dd/MM/yyyy")} ${dataFim}</p>
96 </div>
97 <div>
98 <i class="fa-regular fa-clock d-none"></i>
99 <div class="icon-img"><img src='/documents/20117/53667/clock-solid.svg/7a6cc3fe-dd0a-819f-5502-02bad1907595'></div>
100 <p>${dataIncioObjeto?string("HH:mm")} ${horaFim}</p>
101 </div>
102 <#if tipoFormato != "">
103 <div>
104 <i class="fa fa-map-marker d-none" aria-hidden="true"></i>
105 <div class="icon-img"><img src="/documents/20117/53667/location.svg/d47612ee-437b-16ba-defc-906054c51ee1"></div>
106 <p>${tipoFormato}</p>
107 </div>
108 </#if>
109 <#if organizacao != "">
110 <div>
111 <p>Organização: ${organizacao}</p>
112 </div>
113 </#if>
114 </div>
115 </div>
116
117
118
119 </div>
120
121
122
123 <div class="informacoes-container">
124 <div class="informacoes">
125 <p class="d-none d-md-block">Publicado por: ${publishName} | Data da publicação:${publishDate} | Última atualização: ${modifiedDate}</p>
126 <p class="d-block d-md-none">Publicado por: ${publishName} | Data da publicação:${publishDate} <br>Última atualização: ${modifiedDate}</p>
127 </div>
128 <div class="botao d-none">
129 <button>
130 <i class="fa fa-share-alt-square" aria-hidden="true"></i>
131 </button>
132 </div>
133 </div>
134
135 <#if (DDMStructure_Text63660885.getData())?? || (DDMStructure_Text63660885.getData())?has_content>
136 <div class="bannerEstudo" style=" background-color: #fff; position: relative;">
137
138 <div class="container">
139 <div class="row" style="max-width: 1224px; min-height: 50px; padding: 24px 0; justify-content: center;">
140 <div class="col-lg-5 firstColumn" style="">
141 <h1>${(DDMStructure_Text22556887.getData())?has_content?then(DDMStructure_Text22556887.getData(), "Participe do nosso próximo evento")}</h1>
142 </div>
143 <div class="col-lg-7 secondColumn" style="border-color: #E9EDF0;">
144 <h4>${(DDMStructure_Text68418345.getData())?has_content?then(DDMStructure_Text68418345.getData(), "Uma oportunidade de conectar conhecimento, tendências e especialistas do setor têxtil e de confecção. Garanta sua vaga e esteja por dentro das discussões mais relevantes.")}</h4>
145 <a href="${DDMStructure_Text63660885.getData()}" class="btn btn-primary" target="_blank">Inscreva-se aqui</a>
146 </div>
147 </div>
148 </div>
149
150</div>
151 </#if>
152
153 <#if (CopyOfCopyOfRichText02136115.getData())?has_content>
154 <!-- Texto Parte 1 Eventos -->
155 <div class="textos py-3">
156 <p>${CopyOfCopyOfRichText02136115.getData()}</p>
157 </div>
158 </#if>
159
160 <!-- Vídeo Case -->
161 <#if CopyOfCopyOfText58541593.getData()?has_content>
162 <#assign
163 videoLink = CopyOfCopyOfText58541593.getData()?trim
164 videoId = ""
165 >
166 <#if videoLink?contains("youtu.be/")>
167 <#assign startIndex = videoLink?last_index_of("/") + 1>
168 <#assign videoId = videoLink?substring(startIndex)>
169 <#elseif videoLink?contains("v=")>
170 <#assign startIndex = videoLink?last_index_of("v=") + 2>
171 <#assign videoId = videoLink?substring(startIndex)>
172 </#if>
173 <div class="row py-4 justify-content-center">
174 <div class="video col-md-10">
175 <iframe src="https://www.youtube.com/embed/${videoId}"></iframe>
176 </div>
177 </div>
178 </#if>
179
180</div>
181
182<style>
183 .observatorio-eventos {
184 padding-bottom: 30px;
185
186 .icon-img{
187 min-width: 24px;
188 margin-right: 12px;
189 display: flex;
190 justify-content: center;
191 }
192 }
193
194 .observatorio-eventos .title {
195
196 h1 {
197 font-size: 45px;
198 font-weight: 400;
199
200 line-height: 150%;
201 color: rgba(8, 27, 47, 1);
202 }
203 h4 {
204 font-size: 26px;
205 font-weight: 400;
206
207 line-height: 150%;
208 color: rgba(8, 27, 47, 1);
209 }
210 }
211
212 .observatorio-eventos .informacoes-container {
213 display: flex !important;
214 justify-content: space-between;
215 max-width: 1020px;
216
217 width: 100%;
218 margin: 0 auto;
219 padding: 10px 0;
220 border-top: 1px #E9EDF0 solid;
221 border-bottom: 1px #E9EDF0 solid;
222 }
223
224 .observatorio-eventos .informacoes-container .informacoes {
225 display: flex;
226 align-items: center;
227 }
228
229 .observatorio-eventos .informacoes-container p {
230 font-size: 12px;
231 font-weight: 400;
232 line-height: 18px;
233 letter-spacing: 0em;
234 text-align: left;
235 }
236
237 .observatorio-eventos .informacoes-container .botao button {
238 background: transparent;
239 border: none;
240 }
241
242 .observatorio-eventos .informacoes-container .botao i {
243 color: #fff;
244 background: #000;
245 border: 2px solid #000;
246 border-radius: 5px;
247 font-size: 1.5rem;
248 }
249
250 .observatorio-eventos .textos {
251 margin: 0 auto;
252 max-width: 1016px;
253 }
254
255 .observatorio-eventos .textos p {
256 font-size: 18px;
257 font-weight: 400;
258 line-height: 43px;
259 letter-spacing: 0em;
260 text-align: left;
261 max-width: 808px;
262 margin-inline: auto;
263 }
264
265 .observatorio-eventos .legenda-mobile {
266 background: #fff;
267 opacity: 0.9;
268 padding: 30px 30px 10px;
269 }
270
271 .observatorio-eventos .legenda {
272 position: absolute;
273 transform: translate(0, -50%);
274 max-width: 392px;
275 top: 50%;
276 left: 24px;
277 background: #fff;
278 opacity: 0.9;
279 padding: 30px 30px 10px;
280 }
281
282 .observatorio-eventos .legenda > div,
283 .observatorio-eventos .legenda-mobile > div {
284 display: flex;
285 align-items: center;
286 padding-bottom: 25px;
287 }
288
289 .observatorio-eventos .legenda i,
290 .observatorio-eventos .legenda-mobile i {
291 padding-right: 15px;
292 font-size: 1.1rem;
293 width: 40px;
294 text-align: center;
295 }
296
297 .observatorio-eventos .video iframe{
298 width: 100%;
299 border: 0;
300 height: 560px;
301 }
302
303 /* banner */
304
305 .bannerEstudo {
306 display: flex;
307 align-items: center;
308 width: 100%;
309 margin: 0;
310 margin: 40px 0;
311}
312
313
314.bannerEstudo .firstColumn {
315 padding: 0 63px 0 0;
316align-items: center;
317 display: flex;
318 margin: 0;
319
320 h1{
321 font-weight: 400;
322 text-align: center;
323 }
324}
325
326 .bannerEstudo .secondColumn {
327 padding: 0 0 0 61px;
328 border-left: 2px solid #E9EDF0;
329 min-height: 151px;
330 display: flex;
331 flex-direction: column;
332 gap: 24px;
333 margin: 0;
334
335 h4{
336 font-weight: 400;
337 }
338
339}
340@media (max-width: 991px) {
341 .bannerEstudo .row div{
342 margin: 0;
343 }
344
345 .bannerEstudo .secondColumn {
346 border-left: 2px solid transparent !important;
347 border-top: 2px solid ;
348 padding: 40px 0 24px 0px;
349 margin-left: 15px !important;
350 margin-right: 15px !important;
351 align-items: center;
352
353 .btn{
354 width: 100%;
355 }
356 }
357
358 .bannerEstudo .firstColumn {
359
360 padding: 15px;
361 }
362
363 .observatorio-eventos .textos {
364 width: 100%;
365 overflow-x: hidden;
366 }
367
368 .observatorio-eventos .textos .embed-responsive {
369 width: 100% !important;
370 }
371}
372
373 @media (max-width: 575px) {
374 .observatorio-eventos .title h1 {
375 font-size: 37px;
376 }
377 .observatorio-eventos .video iframe{
378 height: 200px;
379 }
380</style>
