Fix bug #46184 - more odd escaped date formats
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@713403 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
178871c84b
commit
fd2667bec2
@ -37,6 +37,7 @@
|
|||||||
|
|
||||||
<!-- Don't forget to update status.xml too! -->
|
<!-- Don't forget to update status.xml too! -->
|
||||||
<release version="3.5-beta4" date="2008-??-??">
|
<release version="3.5-beta4" date="2008-??-??">
|
||||||
|
<action dev="POI-DEVELOPERS" type="fix">46184 - More odd escaped date formats</action>
|
||||||
<action dev="POI-DEVELOPERS" type="add">Include the sheet number in the output of XLS2CSVmra</action>
|
<action dev="POI-DEVELOPERS" type="add">Include the sheet number in the output of XLS2CSVmra</action>
|
||||||
<action dev="POI-DEVELOPERS" type="fix">46043 - correctly write out HPSF properties with HWPF</action>
|
<action dev="POI-DEVELOPERS" type="fix">46043 - correctly write out HPSF properties with HWPF</action>
|
||||||
<action dev="POI-DEVELOPERS" type="add">45973 - added CreationHelper.createFormulaEvaluator(), implemeted both for HSSF and XSSF</action>
|
<action dev="POI-DEVELOPERS" type="add">45973 - added CreationHelper.createFormulaEvaluator(), implemeted both for HSSF and XSSF</action>
|
||||||
|
@ -34,6 +34,7 @@
|
|||||||
<!-- Don't forget to update changes.xml too! -->
|
<!-- Don't forget to update changes.xml too! -->
|
||||||
<changes>
|
<changes>
|
||||||
<release version="3.5-beta4" date="2008-??-??">
|
<release version="3.5-beta4" date="2008-??-??">
|
||||||
|
<action dev="POI-DEVELOPERS" type="fix">46184 - More odd escaped date formats</action>
|
||||||
<action dev="POI-DEVELOPERS" type="add">Include the sheet number in the output of XLS2CSVmra</action>
|
<action dev="POI-DEVELOPERS" type="add">Include the sheet number in the output of XLS2CSVmra</action>
|
||||||
<action dev="POI-DEVELOPERS" type="fix">46043 - correctly write out HPSF properties with HWPF</action>
|
<action dev="POI-DEVELOPERS" type="fix">46043 - correctly write out HPSF properties with HWPF</action>
|
||||||
<action dev="POI-DEVELOPERS" type="add">45973 - added CreationHelper.createFormulaEvaluator(), implemeted both for HSSF and XSSF</action>
|
<action dev="POI-DEVELOPERS" type="add">45973 - added CreationHelper.createFormulaEvaluator(), implemeted both for HSSF and XSSF</action>
|
||||||
|
@ -211,6 +211,8 @@ public class DateUtil {
|
|||||||
fs = fs.replaceAll("\\\\-","-");
|
fs = fs.replaceAll("\\\\-","-");
|
||||||
// And \, into ,
|
// And \, into ,
|
||||||
fs = fs.replaceAll("\\\\,",",");
|
fs = fs.replaceAll("\\\\,",",");
|
||||||
|
// And \. into .
|
||||||
|
fs = fs.replaceAll("\\\\.",".");
|
||||||
// And '\ ' into ' '
|
// And '\ ' into ' '
|
||||||
fs = fs.replaceAll("\\\\ "," ");
|
fs = fs.replaceAll("\\\\ "," ");
|
||||||
|
|
||||||
|
@ -239,6 +239,7 @@ public final class TestHSSFDateUtil extends TestCase {
|
|||||||
"dd-mm-yy", "dd-mm-yyyy",
|
"dd-mm-yy", "dd-mm-yyyy",
|
||||||
"DD-MM-YY", "DD-mm-YYYY",
|
"DD-MM-YY", "DD-mm-YYYY",
|
||||||
"dd\\-mm\\-yy", // Sometimes escaped
|
"dd\\-mm\\-yy", // Sometimes escaped
|
||||||
|
"dd.mm.yyyy", "dd\\.mm\\.yyyy",
|
||||||
|
|
||||||
// These crazy ones are valid
|
// These crazy ones are valid
|
||||||
"yyyy-mm-dd;@", "yyyy/mm/dd;@",
|
"yyyy-mm-dd;@", "yyyy/mm/dd;@",
|
||||||
|
Loading…
Reference in New Issue
Block a user