Update of /cvsroot/sunxacml/sunxacml/com/sun/xacml/attr
In directory sc8-pr-cvs1:/tmp/cvs-serv14923/com/sun/xacml/attr
Modified Files:
DateTimeAttribute.java
Log Message:
Fixed an encoding bug where hours showed up in 12-hour not 24-hour mode
Index: DateTimeAttribute.java
===================================================================
RCS file: /cvsroot/sunxacml/sunxacml/com/sun/xacml/attr/DateTimeAttribute.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** DateTimeAttribute.java 13 Feb 2003 22:19:10 -0000 1.1.1.1
--- DateTimeAttribute.java 30 Sep 2003 19:59:55 -0000 1.2
***************
*** 604,608 ****
buf.append(DateAttribute.zeroPadInt(dom, 2));
buf.append('T');
! int hour = gmtCalendar.get(Calendar.HOUR);
buf.append(DateAttribute.zeroPadInt(hour, 2));
buf.append(':');
--- 604,608 ----
buf.append(DateAttribute.zeroPadInt(dom, 2));
buf.append('T');
! int hour = gmtCalendar.get(Calendar.HOUR_OF_DAY);
buf.append(DateAttribute.zeroPadInt(hour, 2));
buf.append(':');
|