Bug 96755

Summary: Conversion of time fields from Excel fails
Product: LibreOffice Reporter: Guy Van Sanden <guy>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED INSUFFICIENTDATA    
Severity: normal CC: jalojo
Priority: medium Keywords: filter:xlsx
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: Affected file

Description Guy Van Sanden 2015-12-29 10:03:40 UTC
Created attachment 121588 [details]
Affected file

This affects LO 4 and 5

We use a webapp that can export data to excel format.  When we open the Excel file with Libreoffice calc, the TIME colums (for example column AF in the attached file) have a ' character in front of them, so you can't do calculations on them.

In the excel, you can do calculations on that column.

This looks like a conversion bug?
Comment 1 Jacques Guilleron 2015-12-30 17:49:33 UTC
Hi Guy,

Opening your file in Excel, all Date or time datas appear as text datas (all datas aligned to left). That's why you have this apostrophe when they are imported into Calc.

To see your datas as date and time datas, select the range M3:AM54,
Open "Find & Replace" in Edit menu.
Into "Search For": write 
.*
into "Replace With":  write 
&
At bottom, open Options: select "Regular expressions"
Into "Replace With", select "Replace All".
All selected datas will be replaced by themselves, without apostrophe, and recognized as date and time datas (aligned to right).
Tried with LO  5.0.3.2 Build ID: e5f16313668ac592c1bfb310f4390624e3dbfb75
and Windows 7 Home.
With Calc, formated as date or time datas, then exported to .xlsx format, the datas keep the date and time format, and add no apostrophe when you import it into Calc.

Can you verify that?
Comment 2 QA Administrators 2016-12-07 13:02:05 UTC Comment hidden (obsolete)
Comment 3 QA Administrators 2017-01-31 00:25:20 UTC
Dear Bug Submitter,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-20170131