[richfaces-issues] [JBoss JIRA] Created: (RF-4529) Richfaces.Calendar.formatDate error

zhou careprad (JIRA) jira-events at lists.jboss.org
Wed Sep 24 02:07:20 EDT 2008


Richfaces.Calendar.formatDate error
-----------------------------------

                 Key: RF-4529
                 URL: https://jira.jboss.org/jira/browse/RF-4529
             Project: RichFaces
          Issue Type: Bug
    Affects Versions: 3.1.4
            Reporter: zhou careprad
            Priority: Critical


I don't know if you have fixed this issue,what I use is richfaces3.1.4,I found a bug of the calendar,if you choose a time like "xx-xx-xx 0xxxPM"  with the patther of "MM-dd-yy hhmma",
the calendar can't submit for the reason of validate error.I have found the source,you should change the 
js function Richfaces.Calendar.formatDate in calendar.js
in this line:
case 'hh' : return ((hh = date.getHours())==0 ? '12' : (hh<10 ? '0'+hh : (hh>12 ? ((hh-12)<10?('0'+(hh-12)):(hh-12)) : hh))); //this is what I have changed.
I am very surprising taht there is no one got the same problem when use this componet,It take me a big trouble in the last time when I am to publishing my project.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list