tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bo...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util/buf DateTool.java
Date Thu, 24 Jan 2002 23:59:54 GMT
bojan       02/01/24 15:59:54

  Modified:    src/share/org/apache/tomcat/util/buf DateTool.java
  Log:
  Lachlan O'Dea: Fix for calculation of seconds
  
  Revision  Changes    Path
  1.9       +2 -2      jakarta-tomcat/src/share/org/apache/tomcat/util/buf/DateTool.java
  
  Index: DateTool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/util/buf/DateTool.java,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- DateTool.java	17 Sep 2001 04:56:02 -0000	1.8
  +++ DateTool.java	24 Jan 2002 23:59:54 -0000	1.9
  @@ -142,7 +142,7 @@
       /** 
        */
       public static String format1123( Date d ) {
  -        long dt = d.getTime() % 1000;
  +        long dt = d.getTime() / 1000;
           if ((rfc1123DS != null) && (dt == rfc1123Sec))
               return rfc1123DS;
           rfc1123DS  = rfc1123Format.format( d );
  @@ -151,7 +151,7 @@
       } 
   
       public static String format1123( Date d,DateFormat df ) {
  -        long dt = d.getTime() % 1000;
  +        long dt = d.getTime() / 1000;
           if ((rfc1123DS != null) && (dt == rfc1123Sec))
               return rfc1123DS;
           rfc1123DS  = df.format( d );
  
  
  

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message