Bug 117143 - Calc displays date in a SharePoint list export file with different formatting
Summary: Calc displays date in a SharePoint list export file with different formatting
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.4.5.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: SharePoint-List
  Show dependency treegraph
 
Reported: 2018-04-21 12:18 UTC by Gabor Kelemen (allotropia)
Modified: 2021-01-18 04:09 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot of the problem in Excel 2013 and Calc 5.4 side by side (143.32 KB, image/png)
2018-04-21 12:18 UTC, Gabor Kelemen (allotropia)
Details
Imported igy file in LO 6.2 and Excel 2013 (168.81 KB, image/png)
2018-10-30 10:30 UTC, Gabor Kelemen (allotropia)
Details
Imported igy file in LO 6.1.0.3 and Excel 2013 (147.26 KB, image/png)
2018-10-30 10:31 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2018-04-21 12:18:45 UTC
Created attachment 141520 [details]
Screenshot of the problem in Excel 2013 and Calc 5.4 side by side

Calc displays the cells containing the last modification date with a different formatting.

Steps to reproduce:
1. Open a SharePoint directory in Internet Explorer.
2. Export the directory list into Excel.
3. Open and process the .igy file with Calc.
4. Save the sheet into .ods format. (see attachment #141517 [details] )
5. Open and process the .igy file with Excel.
6. Save the sheet into .xlsx format. (see attachment #141516 [details] )

Actual results:
Excel shows the date cells with Custom formatting: YYYY.MM.NN H:MM
Calc shows the date cells with Date formatting: YY-MM-DD HH:MM

This might be related to the Hungarian locale on Win 8.1.

Expected results:
The date format in Calc matches the one in Excel.
Comment 1 Mike Kaganski 2018-04-23 13:09:52 UTC
There is *no* formatting in the SharePoint List XML. So I am not sure we should try to mimic the representation of plain date decided by Excel.

Or is there a specification somewhere maybe?
Comment 2 raal 2018-05-04 13:37:31 UTC
No repro with LO 6.1_master. LO 02.05.18 08:59  ,  excel 2.5.2018 8:59 . Language CZ
    Version: 6.1.0.0.alpha1+
    Build ID: f154f63cb662f02415d5cb0051011bdb5d0d523c
Comment 3 Xisco Faulí 2018-06-04 13:30:01 UTC
(In reply to raal from comment #2)
> No repro with LO 6.1_master. LO 02.05.18 08:59  ,  excel 2.5.2018 8:59 .
> Language CZ
>     Version: 6.1.0.0.alpha1+
>     Build ID: f154f63cb662f02415d5cb0051011bdb5d0d523c

Dear Gabor,
Could you please try to reproduce it with a master build from http://dev-builds.libreoffice.org/daily/master/ ?
You can install it alongside the standard version.
I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' if the bug is still present in the master build
Comment 4 Gabor Kelemen (allotropia) 2018-10-30 10:30:40 UTC
Created attachment 146164 [details]
Imported igy file in LO 6.2 and Excel 2013

Tested with current bibisect-win32-6.2 with en_US locale.
The date formats are still different.

Excel with hu_HU UI and hu_HU locale on Win 8.1: yyyy.mm.dd h:mm
Calc 6.1 with hu_HU UI and hu_HU locale: YY-MM-DD HH:MM
Calc 6.2 with en_US UI and hu_HU locale: YY-MM-DD HH:MM 

Would it be possible to make this use at least some locale-dependent default? 
I understand that Excel is doing some educated guesswork, perhaps we could do something similar?

Version: 6.2.0.0.alpha1+
Build ID: b6b31bbb1a9e2272ac77de127825c4ee9f71effa
CPU threads: 4; OS: Windows 6.3; UI render: GL; VCL: win; 
Locale: hu-HU (hu_HU); Calc: CL
Comment 5 Gabor Kelemen (allotropia) 2018-10-30 10:31:04 UTC
Created attachment 146165 [details]
Imported igy file in LO 6.1.0.3 and Excel 2013
Comment 6 Xisco Faulí 2019-05-16 11:51:38 UTC
Hi Gabor,
Still reproducible in master ?
Comment 7 Eike Rathke 2020-04-17 20:01:50 UTC
(In reply to Gabor Kelemen from comment #4)
> Excel with hu_HU UI and hu_HU locale on Win 8.1: yyyy.mm.dd h:mm
> Calc 6.1 with hu_HU UI and hu_HU locale: YY-MM-DD HH:MM
> Calc 6.2 with en_US UI and hu_HU locale: YY-MM-DD HH:MM 
> 
> Would it be possible to make this use at least some locale-dependent
> default? 

YY-MM-DD HH:MM *is* the default date+time format in the hu-HU locale.
Check with entering =NOW() in a General/Standard formatted cell.

> I understand that Excel is doing some educated guesswork, perhaps we could
> do something similar?

Why does Excel display it in a yyyy.mm.dd h:mm format?
Comment 8 Buovjaga 2020-06-20 14:17:13 UTC
Needinfo per last comment
Comment 9 QA Administrators 2020-12-18 03:51:21 UTC Comment hidden (obsolete)
Comment 10 QA Administrators 2021-01-18 04:09:04 UTC
Dear Gabor Kelemen,

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-FollowUp