]
Pavel Yaschenko resolved RF-4529.
---------------------------------
Fix Version/s: 3.2.2
Resolution: Out of Date
Assignee: Tsikhon Kuprevich (was: Pavel Yaschenko)
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
Assignee: Tsikhon Kuprevich
Fix For: 3.2.2
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: