directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r392683 - /directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.java
Date Sun, 09 Apr 2006 06:45:40 GMT
Author: akarasulu
Date: Sat Apr  8 23:45:39 2006
New Revision: 392683

URL: http://svn.apache.org/viewcvs?rev=392683&view=rev
Log:
DateUtils bug corrected for month

Modified:
    directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.java

Modified: directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.java
URL: http://svn.apache.org/viewcvs/directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.java?rev=392683&r1=392682&r2=392683&view=diff
==============================================================================
--- directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.java
(original)
+++ directory/branches/shared/0.9.5/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.java
Sat Apr  8 23:45:39 2006
@@ -45,7 +45,7 @@
     {
         Calendar cal = Calendar.getInstance( UTC_TIME_ZONE );
         cal.set( Calendar.YEAR, getYear( zuluTime ) ); 
-        cal.set( Calendar.MONTH, getMonth( zuluTime ) ); 
+        cal.set( Calendar.MONTH, getMonth( zuluTime ) - 1 ); 
         cal.set( Calendar.DAY_OF_MONTH, getDay( zuluTime ) ); 
         cal.set( Calendar.HOUR_OF_DAY, getHour( zuluTime ) ); 
         cal.set( Calendar.MINUTE, getMinutes( zuluTime ) );



Mime
View raw message