Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Inactive
-
Affects Version/s: 6.0.5 GA, 6.0.6 GA
-
Fix Version/s: None
-
Component/s: WCM, WCM > Asset Publisher, WCM > Web Content Administration
-
Labels:None
-
Similar Issues:
Description
Hi, I have used following Velocity template in Liferay 5.1.2 and it prints expected results (returns Date) bud if I try the same in 6.0.5 many of them (with BAD) returns null.
I'm really not sure what's going on...
-
- Velocity template BEGIN
$dateTool.toDate("EEE, dd MMM yyyy hh:mm:ss Z" , "Fri, 24 Sep 2010 10:53:00 +0200") BAD<br/>
$dateTool.toDate("dd MMM yyyy hh:mm:ss Z" , "24 Sep 2010 10:53:00 +0200") BAD<br/>
$dateTool.toDate("MMM yyyy hh:mm:ss Z" , "Sep 2010 10:53:00 +0200") BAD<br/>
$dateTool.toDate("yyyy hh:mm:ss Z" , " 2010 10:53:00 +0200") OK<br/>
$dateTool.toDate("hh:mm:ss Z" , "10:53:00 +0200") OK<br/>
$dateTool.toDate("dd MM yyyy hh:mm:ss Z" , "05 11 2010 10:53:00 +0200") OK<br/>
$dateTool.toDate("EEE dd MM yyyy hh:mm:ss Z" , "Fri 05 11 2010 10:53:00 +0200") BAD<br/>
$dateTool.toDate("EEE, dd MMM yyyy hh:mm:ss" , "Fri, 24 Sep 2010 10:53:00") BAD<br/> - Velocity template END
- Velocity template BEGIN

Hello Milan,
Thank you for your report. I'd like to try to verify the steps to reproduce this ticket but I need your help. Have you had the opportunity to discuss this issue on the community forums? If so, were there other users who were also experiencing this problem? Thanks!