Hello Lorenzo,
starting with Jahia 4.2 the date format strictly adheres to the Java's
date format pattern (http://java.sun.com/j2se/1.4.2/docs/api/java/text/SimpleDateFormat.html)
So in your case, the pattern should be updated in the templates from:
dd.mm.yyy HH:MM
to
dd.MM.yyyy HH:mm
Please note the correct case of the pattern characters.
After these changes, check that your JSP templates get recompiled
properly: you will need to delete the already compiled JSP or/and
comment out or delete the corresponding servlet-mapping in the web.xml
file, in order to force the recompilation.
Kind regards
Sergiy
Lorenzo Patocchi wrote:
Hello,
we have upgraded from jahia 4.1.1 to jahia 4.2 build 19618 and noticed
a serious problem handing dateField
the tag:
<content:dateField name="fromDate" defaultValue=""
diffActive="true" display="false" valueId="fromDate" />
generated unusable output with 00 on month, i.e.: 16.00.2008 02:06
Current workaround is:
org.jahia.data.beans.ContainerBean container =
(org.jahia.data.beans.ContainerBean)pageContext.getAttribute("newsContainer");
fDate = new
Date(Long.parseLong((String)container.getFieldObject("fromDate")));
but would be fine to have it working as 4.1 version.
but also editor is get affected by this bug.

Another problem is the reset date, actually not working.
Thank you for support.
--
Lorenzo Patocchi
Dipl. Ing. STS/ETS/HTL
[EMAIL PROTECTED] - www.cryms.com
Tel: +41 91 60 55266
Cel: +41 79 375 0891
Fax: +41 91 223 9797
Cryms sagl
Via Vedeggio 1
Uovo di Manno
6928 Manno - Lugano
Switzerland
_______________________________________________
template_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list
|
_______________________________________________
template_list mailing list
[email protected]
http://lists.jahia.org/cgi-bin/mailman/listinfo/template_list