tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "GOMEZ Henri" <hgo...@slib.fr>
Subject RE: cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/util/buf DateTool.java
Date Fri, 25 Jan 2002 07:07:38 GMT
Thanks Bojan, I introduced these 2 bugs ;)

-
Henri Gomez                 ___[_]____
EMAIL : hgomez@slib.fr        (. .)                     
PGP KEY : 697ECEDD    ...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6 



>-----Original Message-----
>From: bojan@apache.org [mailto:bojan@apache.org]
>Sent: Friday, January 25, 2002 1:00 AM
>To: jakarta-tomcat-cvs@apache.org
>Subject: cvs commit: 
>jakarta-tomcat/src/share/org/apache/tomcat/util/buf
>DateTool.java
>
>
>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/D
>ateTool.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>


--
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