Bug 20912 - Date value uncorrect : return 1/1/1601 every tree days
Summary: Date value uncorrect : return 1/1/1601 every tree days
Alias: None
Product: POI
Classification: Unclassified
Component: HPSF (show other bugs)
Version: 1.5
Hardware: PC All
: P3 major (vote)
Target Milestone: ---
Assignee: POI Developers List
Depends on:
Reported: 2003-06-19 14:07 UTC by Eric Dewinter
Modified: 2005-03-20 17:06 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description Eric Dewinter 2003-06-19 14:07:10 UTC
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).
Comment 1 Rainer Klute 2003-06-26 08:51:53 UTC
This has been corrected some time ago. Please get the latest development build
(see http://jakarta.apache.org/builds/jakarta-poi/dev/) and check if this fixes
your problem.