Bug 34977

Summary: FORMATTING/UI: time is apparently lost from datetime cells when reading Excel spreadsheets
Product: LibreOffice Reporter: Dan Dascalescu <ddascalescu+freedesktop>
Component: CalcAssignee: Eike Rathke <erack>
Status: CLOSED FIXED    
Severity: normal    
Priority: medium    
Version: 3.3.0 release   
Hardware: All   
OS: All   
Whiteboard: numberformat target:3.5.0
Crash report or crash signature: Regression By:
Attachments: Sample Excel file to demonstrate the problem
Calc doesn't display the time from the datetime cell
Gnumeric does display the time when editing the cell
Excel displays the time

Description Dan Dascalescu 2011-03-03 09:03:36 UTC
Created attachment 44078 [details]
Sample Excel file to demonstrate the problem

Excel has this neat feature that if the format of a cell is YYYY-MM-DD, it can also store a time for the cell (HH:MM:SS). The time isn't displayed in the cell, but it's display in the edit box at the top when the cursor is over the cell. This feature is useful when the user is interested in the date, and only occasionally in the time, as it allows a date column to be sized to contain only the date (see the attached sample Excel file).

When opening such an Excel file in LibreOffice, Calc doesn't display the time at all, not even when pressing F2 to edit the cell. By comparison, Gnumeric displays the time in that case (see the attached screenshots).
Comment 1 Dan Dascalescu 2011-03-03 09:04:35 UTC
Created attachment 44079 [details]
Calc doesn't display the time from the datetime cell
Comment 2 Dan Dascalescu 2011-03-03 09:04:58 UTC
Created attachment 44080 [details]
Gnumeric does display the time when editing the cell
Comment 3 Don't use this account, use tml@iki.fi 2011-03-04 02:22:01 UTC
For Kohei I assume.
Comment 4 Dan Dascalescu 2011-03-04 05:02:47 UTC
Comment on attachment 44079 [details]
Calc doesn't display the time from the datetime cell

Wrong attachment.
Comment 5 Dan Dascalescu 2011-03-04 05:21:42 UTC
Created attachment 44115 [details]
Excel displays the time
Comment 6 Kohei Yoshida 2011-03-04 08:00:54 UTC
Another date formatting issue.  We have no shortage of them...
Comment 7 Eike Rathke 2011-08-05 06:27:26 UTC
That's pretty easy, I'll do.