You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bo...@apache.org on 2003/07/03 16:59:59 UTC

cvs commit: ant/src/main/org/apache/tools/zip ZipFile.java

bodewig     2003/07/03 07:59:59

  Modified:    src/main/org/apache/tools/zip ZipFile.java
  Log:
  Calendar.HOUR is different from Calendar.HOUR_OF_DAY
  
  Revision  Changes    Path
  1.3       +2 -2      ant/src/main/org/apache/tools/zip/ZipFile.java
  
  Index: ZipFile.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/zip/ZipFile.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ZipFile.java	3 Jul 2003 08:30:11 -0000	1.2
  +++ ZipFile.java	3 Jul 2003 14:59:59 -0000	1.3
  @@ -409,7 +409,7 @@
           cal.set(Calendar.YEAR, (int) ((dosTime >> 25) & 0x7f) + 1980);
           cal.set(Calendar.MONTH, (int) ((dosTime >> 21) & 0x0f) - 1);
           cal.set(Calendar.DATE, (int) (dosTime >> 16) & 0x1f);
  -        cal.set(Calendar.HOUR, (int) (dosTime >> 11) & 0x1f);
  +        cal.set(Calendar.HOUR_OF_DAY, (int) (dosTime >> 11) & 0x1f);
           cal.set(Calendar.MINUTE, (int) (dosTime >> 5) & 0x3f);
           cal.set(Calendar.SECOND, (int) (dosTime << 1) & 0x3e);
           return cal.getTime();
  
  
  

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