Author: pyaschenko
Date: 2008-08-11 11:06:04 -0400 (Mon, 11 Aug 2008)
New Revision: 10026
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
Log:
https://jira.jboss.org/jira/browse/RF-4138
Modified:
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js
===================================================================
---
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2008-08-11
14:59:04 UTC (rev 10025)
+++
trunk/ui/calendar/src/main/resources/org/richfaces/renderkit/html/scripts/calendar.js 2008-08-11
15:06:04 UTC (rev 10026)
@@ -437,7 +437,7 @@
case 'a' : return (date.getHours()<12 ? 'AM' :
'PM');
case 'HH' : return ((hh = date.getHours())<10 ? '0'+hh :
hh);
case 'H' : return date.getHours();
- case 'hh' : return ((hh = date.getHours())==0 ? '12' :
(hh<10 ? '0'+hh : (hh>12 ? hh-12 : hh)));
+ case 'hh' : return ((hh = date.getHours())==0 ? '12' :
(hh<10 ? '0'+hh : (hh>21 ? hh-12 : (hh>12) ? '0'+(hh-12) :
hh)));
case 'h' : return ((hh = date.getHours())==0 ? '12' :
(hh>12 ? hh-12 : hh));
case 'mm' : return ((min = date.getMinutes())<10 ?
'0'+min : min);
}