در حین انجام عملیات خطایی رخ داده است.
Java method "com.liferay.portal.kernel.util.DateUtil_IW.getDate(Date, String, Locale)" threw an exception when invoked on com.liferay.portal.kernel.util.DateUtil_IW object "com.liferay.portal.kernel.util.DateUtil_IW@48e69b24"; see cause exception in the Java stack trace. ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign publishDate = dateUtil.getDat... [in template "20098#20124#2336322" at line 11, column 33] ----
1<#if entries?has_content>
2 <div class="container">
3 <div class="sp-announcement-fac row pt-4 pb-6">
4 <div class="col-12 mt-2 mb-2"><h3><@liferay.language key="خبرهای مرتبط"/></h3></div>
5 <#assign i = 0 >
6 <#assign delay = 0 >
7 <#list entries as curEntry>
8 <#assign assetRenderer = curEntry.getAssetRenderer() />
9 <#assign renderer=curEntry.getAssetRenderer()>
10 <#assign dateFormat = "dd MMM yyyy" />
11 <#assign publishDate=dateUtil.getDate(curEntry.getPublishDate(),dateFormat,localet)/>
12 <#assign delay = delay + 150 >
13 <div class="col-12 col-md-6 sp-item sp-small mb-3" data-aos="fade-in" data-aos-delay="${delay}" data-aos-once="true"> <div class="sp-img">
14 <#if !assetRenderer.getThumbnailPath(renderRequest)??>
15 <#assign imgSrc="/o/sbu-theme/images/default-image.jpg" />
16 <#else>
17 <#assign imgSrc=assetRenderer.getThumbnailPath(renderRequest) />
18 </#if>
19 <img src="${imgSrc}" class="img-fluid" />
20 </div>
21 <div class="sp-content">
22 <div class="sp-date" date-publish="${publishDate}"></div>
23 <a href="${assetPublisherHelper.getAssetViewURL(renderRequest, renderResponse, curEntry,true)}">
24 <div class="sp-title">${curEntry.getTitle(locale)}</div>
25 </a>
26 </div>
27 </div>
28 </#list>
29 </div>
30 </div>
31 <script>
32 $(".sp-announcement-fac .sp-date").each(function(){
33 var dp=$(this).attr('date-publish');
34 var dir=$("html").attr("dir");
35 if(dir=="rtl")
36 {
37 $(this).text(moment(dp).locale('fa').format('D MMM YYYY'));
38 }
39 else
40 {
41 $(this).text(dp);
42 }
43
44 });
45</script>
46 <style>
47.display-page .sp-announcement-fac {
48 background: #ffa705;
49 padding: 0 10%;
50}
51.display-page .portlet-content {
52 padding: 0;
53}
54</style>
55</#if>
56<style>
57.display-page .portlet {
58 margin-bottom: 0px;
59}
60</style>