commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rwins...@apache.org
Subject cvs commit: jakarta-commons/net/src/java/org/apache/commons/net/ftp/parser EnterpriseUnixFTPEntryParser.java NTFTPEntryParser.java OS2FTPEntryParser.java OS400FTPEntryParser.java UnixFTPEntryParser.java VMSFTPEntryParser.java
Date Tue, 23 Nov 2004 12:52:21 GMT
rwinston    2004/11/23 04:52:20

  Modified:    net/src/java/org/apache/commons/net/ftp/parser
                        EnterpriseUnixFTPEntryParser.java
                        NTFTPEntryParser.java OS2FTPEntryParser.java
                        OS400FTPEntryParser.java UnixFTPEntryParser.java
                        VMSFTPEntryParser.java
  Log:
  Set Calendar.MILLISECONDS to 0, as per bug 32034
  
  Revision  Changes    Path
  1.13      +2 -1      jakarta-commons/net/src/java/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParser.java
  
  Index: EnterpriseUnixFTPEntryParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/net/src/java/org/apache/commons/net/ftp/parser/EnterpriseUnixFTPEntryParser.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- EnterpriseUnixFTPEntryParser.java	28 Jul 2004 05:01:47 -0000	1.12
  +++ EnterpriseUnixFTPEntryParser.java	23 Nov 2004 12:52:20 -0000	1.13
  @@ -109,6 +109,7 @@
               }
   
               Calendar cal = Calendar.getInstance();
  +	    cal.set(Calendar.MILLISECOND, 0);
               cal.set(Calendar.SECOND,
                       0);
               cal.set(Calendar.MINUTE,
  
  
  
  1.18      +2 -1      jakarta-commons/net/src/java/org/apache/commons/net/ftp/parser/NTFTPEntryParser.java
  
  Index: NTFTPEntryParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/net/src/java/org/apache/commons/net/ftp/parser/NTFTPEntryParser.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- NTFTPEntryParser.java	28 Jul 2004 05:01:47 -0000	1.17
  +++ NTFTPEntryParser.java	23 Nov 2004 12:52:20 -0000	1.18
  @@ -119,6 +119,7 @@
                   hour = 0;
               }
   
  +	    cal.set(Calendar.MILLISECOND, 0);
               cal.set(Calendar.SECOND, 0);
               cal.set(Calendar.MINUTE, minutes);
   
  
  
  
  1.13      +2 -1      jakarta-commons/net/src/java/org/apache/commons/net/ftp/parser/OS2FTPEntryParser.java
  
  Index: OS2FTPEntryParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/net/src/java/org/apache/commons/net/ftp/parser/OS2FTPEntryParser.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- OS2FTPEntryParser.java	28 Jul 2004 05:01:47 -0000	1.12
  +++ OS2FTPEntryParser.java	23 Nov 2004 12:52:20 -0000	1.13
  @@ -111,6 +111,7 @@
               }
   
               //set the calendar
  +	    cal.set(Calendar.MILLISECOND, 0);
               cal.set(Calendar.SECOND, 0);
               cal.set(Calendar.MINUTE, minutes);
               cal.set(Calendar.HOUR_OF_DAY, hour);
  
  
  
  1.5       +2 -1      jakarta-commons/net/src/java/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.java
  
  Index: OS400FTPEntryParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/net/src/java/org/apache/commons/net/ftp/parser/OS400FTPEntryParser.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- OS400FTPEntryParser.java	28 Jul 2004 05:01:47 -0000	1.4
  +++ OS400FTPEntryParser.java	23 Nov 2004 12:52:20 -0000	1.5
  @@ -85,6 +85,7 @@
               }
   
               Calendar cal = Calendar.getInstance();
  +	    cal.set(Calendar.MILLISECOND, 0);
               cal.set(Calendar.SECOND, 0);
               cal.set(Calendar.MINUTE, 0);
               cal.set(Calendar.HOUR_OF_DAY, 0);
  
  
  
  1.20      +2 -1      jakarta-commons/net/src/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java
  
  Index: UnixFTPEntryParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/net/src/java/org/apache/commons/net/ftp/parser/UnixFTPEntryParser.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- UnixFTPEntryParser.java	14 Sep 2004 01:47:17 -0000	1.19
  +++ UnixFTPEntryParser.java	23 Nov 2004 12:52:20 -0000	1.20
  @@ -183,6 +183,7 @@
               }
   
               Calendar cal = Calendar.getInstance();
  +	    cal.set(Calendar.MILLISECOND, 0);
               cal.set(Calendar.SECOND, 0);
               cal.set(Calendar.MINUTE, 0);
               cal.set(Calendar.HOUR_OF_DAY, 0);
  
  
  
  1.25      +2 -1      jakarta-commons/net/src/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java
  
  Index: VMSFTPEntryParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/net/src/java/org/apache/commons/net/ftp/parser/VMSFTPEntryParser.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- VMSFTPEntryParser.java	28 Jul 2004 05:01:47 -0000	1.24
  +++ VMSFTPEntryParser.java	23 Nov 2004 12:52:20 -0000	1.25
  @@ -187,6 +187,7 @@
               cal.set(Calendar.HOUR_OF_DAY, new Integer(hr).intValue());
               cal.set(Calendar.MINUTE, new Integer(min).intValue());
               cal.set(Calendar.SECOND, new Integer(sec).intValue());
  +	    cal.set(Calendar.MILLISECOND, 0);
               f.setTimestamp(cal);
   
               f.setGroup(grp);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message