Topic
1 reply Latest Post - ‏2013-04-23T02:55:49Z by ivyho
makbolat
makbolat
12 Posts
ACCEPTED ANSWER

Pinned topic hx:convertDateTime 31 March 2013 Problem.

‏2013-04-01T08:21:04Z |
Hi all,
I have problem with date time inputs at 31 March 2013. At this date if I enter a time between 03:00 and 03:59, it will set the time 1 hour before on unfocus.

Example I pick up 31/03/2013 03:45 then I click an other object on the page then the time is being set to 02:45. Is this a bug or not?
Thanks for help.

Here is exaple page:


<%-- jsf:pagecode language=
"java" location=
"/src/pagecode/AADateTimeTest.java" --%><%-- /jsf:pagecode --%><%@page language=
"java" contentType=
"text/html; charset=ISO-8859-9" pageEncoding=
"ISO-8859-9"%> <%@taglib uri=
"http://java.sun.com/jsf/core" prefix=
"f"%> <%@taglib uri=
"http://java.sun.com/jsf/html" prefix=
"h"%> <%@taglib uri=
"http://www.ibm.com/jsf/html_extended" prefix=
"hx"%> <html> <head> <link rel=
"stylesheet" href=
"theme/Master.css" type=
"text/css"> <link rel=
"stylesheet" href=
"theme/stylesheet.css" type=
"text/css"> <title>AADateTimeTest</title> <meta http-equiv=
"Content-Type" content=
"text/html; charset=ISO-8859-9"> </head> <f:view> <body> <hx:scriptCollector id=
"scriptCollector1">   <h:form styleClass=
"form" id=
"form1"> <h:inputText styleClass=
"inputText" id=
"text1"> <hx:convertDateTime pattern=
"dd/MM/yyyy HH:mm" timeZone=
"Europe/Istanbul" locale=
"tr"/> <hx:inputHelperDatePicker id=
"datePicker1" /> <hx:inputHelperAssist errorClass=
"inputText_Error" promptCharacter=
"_" id=
"assist1" /> </h:inputText> <h:inputText styleClass=
"inputText" id=
"text2"></h:inputText> </h:form> </hx:scriptCollector> </body> </f:view> </html>

And here is the environment versions
WebSphere Platform 7.0.0.13 http://BASE 7.0.0.13 cf131039.07 running with process name bimprog30Node01Cell\bimprog30Node01\server1 and process id 5320
Host Operating System is Windows 7, version 6.1 build 7601 Service Pack 1
Java version = 1.6.0, Java Compiler = j9jit24, Java VM name = IBM J9 VM

RSA 8.5
And.. this is my project faces file


<?xml version=
"1.0" encoding=
"UTF-8"?> <faceted-project> <runtime name=
"WebSphere Application Server v7.0"/> <fixed facet=
"jsf.ibm"/> <fixed facet=
"jsf.base"/> <fixed facet=
"com.ibm.websphere.coexistence.web"/> <fixed facet=
"com.ibm.websphere.extended.web"/> <fixed facet=
"web.jstl"/> <fixed facet=
"web.template"/> <installed facet=
"jsf.base" version=
"7.0"/> <installed facet=
"web.template" version=
"1.0"/> <installed facet=
"web.jstl" version=
"1.1"/> <installed facet=
"jsf.ibm" version=
"7.0"/> <installed facet=
"jst.web" version=
"2.4"/> <installed facet=
"jst.jsf" version=
"1.1"/> <installed facet=
"com.ibm.websphere.coexistence.web" version=
"7.0"/> <installed facet=
"com.ibm.websphere.extended.web" version=
"7.0"/> <installed facet=
"jst.java" version=
"6.0"/> </faceted-project>
  • ivyho
    ivyho
    67 Posts
    ACCEPTED ANSWER

    Re: hx:convertDateTime 31 March 2013 Problem.

    ‏2013-04-23T02:55:49Z  in response to makbolat

    Please try to Switch from <hx:convertDateTime pattern="dd/MM/yyyy"/> to <f:convertDateTime
    pattern="dd/MM/yyyy"/> and see if this will workaround the issue.