You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2003/06/19 16:07:10 UTC

DO NOT REPLY [Bug 20912] New: - Date value uncorrect : return 1/1/1601 every tree days

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20912>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20912

Date value uncorrect : return 1/1/1601 every tree days

           Summary: Date value uncorrect : return 1/1/1601 every tree days
           Product: POI
           Version: 1.5
          Platform: PC
        OS/Version: Windows 9x
            Status: NEW
          Severity: Major
          Priority: Other
         Component: HPFS
        AssignedTo: poi-dev@jakarta.apache.org
        ReportedBy: ericdewinter2@hotmail.com


When I try to get the value of a date property of a Word document (with 
property.getValue()). It returns me sometimes a wrong date. In fact, trying 
many calendar days in row, it will get me the good dates 3 days in a row then a 
wrong date the 3 following days then again 3 good dates and so on. 

For example 08/06/2000, 09/06/2000 and 10/06/2000 setted in a custom property 
will return me the good values but 11/06/2000, 12/06/2000 and 13/06/2000 will 
get me a wrong value (something like : Mon Jan 01 00:57:58 CET 1601). I 
observed that wrong date always state a 'CET' and good ones a 'CEST'.

You also had the same problem : look in the "HPSF How-to", 1.3.7 Sample 
Output : the property ID 12 in the SummaryInformation (supposed to be the 
creation date) indicates : Mon Jan 01 00:59:25 CET 1601 !!! But the date just 
following (ID 13 : last save) seems right (Thu Jul 18 16:22:00 CEST 2002).