Apache OpenOffice (AOO) Bugzilla – Issue 24504
compatibility bug xls datecel excel and openoffice
Last modified: 2013-08-07 15:15:02 UTC
discription: compatability of the cel with 'date' information like '1-1-2004' between files saved by excel in the .xls format and files saved bij openoffice in the .xls format. When the .xls file is imported in the database filemaker pro 6 the data is good imported fram an .xls file saved by excel but its bad imported if the same file is saved by openoffice in the .xls format. Filemaker pro imports de date 1-1-2004 like the nuber: '37987' version: excel 2002 (XP) (englisch version) openoffice 1.1.0 dutch version Filemaker pro 6 (6.01v1 englisch version) file format excel: .xls file format openoffice: .xls (microsoft excel 97/2000/XP) example: the attached files only contains the date '1-1-2004' in the first cel of the spreadsheet. that's all, the first file is created in excel and saved in the .xls format the attached example file: 'date1a_saved_from_excel_2002.xls' which only contains one cell with the date '1-1-2004' is imported in the right way by filemaker pro 6. the same file openend and saved by openoffice as 'date1a_saved_from_openoffice_110.xls' is imported wrong as a number '37987'. if this file is opened by excel again and saved as: 'date1b_saved_from_excel_2002.xls' the date is imported by filemaker pro 6 as a date again. conclusion: there seems to be a different way in writing the date information in an .xls file between excel 2002 and openoffice 1.1.0. This doesn't harm the compatibility between excel 2002 and openoffice 1.1.0. But it has influence on the import compatibility in other software like Filemaker pro 6
Created attachment 12535 [details] xls compatability testfiles
Hi Daniel, can you have a look on the differences between the both files ? Maybe MSC has a filemeaker database if needed. Frank
set the target
Calc seems to write non-standard date/time separators without backslash. i.e.: Excel: "DD\-MM\-YYYY", Calc: "DD-MM-YYYY" Same for time formats: i.e.: Excel: "hh\ mm\ am/pm", Calc: "hh mm am/pm"
Indeed.. Excel never complained about unescaped non-separator characters upon reading, in fact it unescapes escaped characters for displaying the format code when it reads it's own file format, but writes them escaped. See also http://www.openoffice.org/servlets/ReadMsg?list=users&msgNo=54409 where in the sample documents the time format code of the Excel file has the blank between time and am/pm escaped, in the file saved from Calc it isn't. Adjusting target to OOo2.0 since this is an interoperability issue and fits in the work to be done in the number formatter area.
*** Issue 28712 has been marked as a duplicate of this issue. ***
On branch cws_src680_numforensis: svtools/inc/nfsymbol.hxx 1.1.2.1 svtools/prj/d.lst 1.118.20.1 svtools/source/numbers/zformat.cxx 1.60.22.1 svtools/source/numbers/zforscan.cxx 1.36.124.2 svtools/source/numbers/zforscan.hxx 1.17.124.1 xmloff/source/style/xmlnumfe.cxx 1.38.66.1
Reopen to reassign.
Reassign to QA.
tk: verified on branch cws src680 numforensis
closed because fix available in OOo1.9m65