directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r392685 - /directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.java
Date Sun, 09 Apr 2006 06:48:21 GMT
Author: akarasulu
Date: Sat Apr  8 23:48:20 2006
New Revision: 392685

URL: http://svn.apache.org/viewcvs?rev=392685&view=rev
Log:
merging fix to month of year in DateUtils.getDate()

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

Modified: directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.java?rev=392685&r1=392684&r2=392685&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.java
(original)
+++ directory/trunks/shared/ldap/src/main/java/org/apache/directory/shared/ldap/util/DateUtils.java
Sat Apr  8 23:48:20 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