Bug 142928

Summary: FILEOPEN XLSX Standard filters date condition appears converted to plain number
Product: LibreOffice Reporter: NISZ LibreOffice Team <libreoffice>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: miguelangelrv, nemeth, varga.balazs3
Priority: medium Keywords: filter:xlsx
Version: Inherited From OOo   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=142929
Whiteboard:
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 123807    
Attachments: Example file from Excel with condition “Between”
Screenshot of the original document side by side in Excel and Calc
Another example file from Excel with condition “Later than”
Screenshot of the original document with condition “Later than” side by side in Excel and Calc
Another example file from Excel with condition “Not equals”
Another example file from Excel with condition “Not equals”
Screenshot of the original document with condition “Not equals” side by side in Excel and Calc

Description NISZ LibreOffice Team 2021-06-18 09:54:10 UTC
Created attachment 172996 [details]
Example file from Excel with condition “Between”

Attached example file was made in Excel and on the Date column there is a standard filter set of type “Between two values”, with a “not earlier than” and a “not later than” condition.
When opened in Calc the two values appear as plain numbers instead of dates.
This also happens with other standard filters like Earlier than, Later than and Not equals, but not with type Equals.

Steps to reproduce:
    1. Open attached file
    2. Open the autofilter, select Standard Filter

Actual results:
The Standard Filter dialog shows the values of the conditions as 40179 and 44136 instead of 2010.01.01 and 2020.11.01

Expected results:
The conditions should be formatted as dates.

LibreOffice details:
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: c703b2d22c3f45825d9c9d790c3b5a4b6f97e776
CPU threads: 4; OS: Windows 10.0 Build 18363; UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: hu-HU
Calc: CL

Also happens with en-US locale/UI. The example file was made in a Hungarian Excel.

Also in 7.0, 6.0, 5.0, 4.0, 3.5
Comment 1 NISZ LibreOffice Team 2021-06-18 10:01:39 UTC
Created attachment 172997 [details]
Screenshot of the original document side by side in Excel and Calc
Comment 2 NISZ LibreOffice Team 2021-06-18 10:02:03 UTC
Created attachment 172998 [details]
Another example file from Excel with condition “Later than”
Comment 3 NISZ LibreOffice Team 2021-06-18 10:02:24 UTC
Created attachment 172999 [details]
Screenshot of the original document with condition “Later than” side by side in Excel and Calc
Comment 4 NISZ LibreOffice Team 2021-06-18 10:02:46 UTC Comment hidden (obsolete)
Comment 5 NISZ LibreOffice Team 2021-06-18 10:03:24 UTC
Created attachment 173001 [details]
Another example file from Excel with condition “Not equals”
Comment 6 NISZ LibreOffice Team 2021-06-18 10:03:45 UTC
Created attachment 173002 [details]
Screenshot of the original document with condition “Not equals” side by side in Excel and Calc
Comment 7 m_a_riosv 2021-06-19 00:01:08 UTC
Repro
Version: 7.3.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: a78510ab673dd0d827efeb00873d5d9137813be7
CPU threads: 4; OS: Windows 10.0 Build 21390; UI render: Skia/Vulkan; VCL: win
Locale: es-ES (es_ES); UI: es-ES Calc: threaded

Looks the issue is with the imported value, selecting from the field show dates.
Comment 8 QA Administrators 2023-06-20 03:13:18 UTC Comment hidden (obsolete)
Comment 9 Stéphane Guillou (stragu) 2023-10-05 06:25:59 UTC
Reproduced in recent trunk build with attachment 172996 [details].

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f95c3994f0b6a82a3bc2ddfb68822b74479ae185
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded