From bb85e52d3de852f8c706722316e8476fb3dc95a3 Mon Sep 17 00:00:00 2001 From: Yegor Kozlov Date: Sat, 27 Jun 2009 11:21:26 +0000 Subject: [PATCH] Explicitly set the 1900 date system when creating XSSF workbooks, see Bugzilla 47411 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@788956 13f79535-47bb-0310-9956-ffa450edef68 --- src/documentation/content/xdocs/status.xml | 1 + .../org/apache/poi/xssf/usermodel/XSSFWorkbook.java | 5 +++++ .../apache/poi/xssf/usermodel/TestXSSFWorkbook.java | 10 +++++++++- 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/documentation/content/xdocs/status.xml b/src/documentation/content/xdocs/status.xml index 35554d1143..dfa706680c 100644 --- a/src/documentation/content/xdocs/status.xml +++ b/src/documentation/content/xdocs/status.xml @@ -33,6 +33,7 @@ + 47411 - Explicitly set the 1900 date system when creating XSSF workbooks 47400 - Support fo text extraction of footnotes, endnotes and comments in HWPF 47415 - Fixed PageSettingsBlock to allow multiple PLS records 47412 - Fixed concurrency issue with EscherProperties.initProps() diff --git a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java index 461fe60394..5d509260e3 100644 --- a/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java +++ b/src/ooxml/java/org/apache/poi/xssf/usermodel/XSSFWorkbook.java @@ -215,6 +215,11 @@ public class XSSFWorkbook extends POIXMLDocument implements Workbook, Iterable