Bug 142928 - FILEOPEN XLSX Standard filters date condition appears converted to plain number
Summary: FILEOPEN XLSX Standard filters date condition appears converted to plain number
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:xlsx
Depends on:
Blocks: XLSX-Autofilter
  Show dependency treegraph
 
Reported: 2021-06-18 09:54 UTC by NISZ LibreOffice Team
Modified: 2023-10-05 06:25 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Excel with condition “Between” (10.43 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-06-18 09:54 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document side by side in Excel and Calc (117.63 KB, image/png)
2021-06-18 10:01 UTC, NISZ LibreOffice Team
Details
Another example file from Excel with condition “Later than” (10.40 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-06-18 10:02 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document with condition “Later than” side by side in Excel and Calc (108.27 KB, image/png)
2021-06-18 10:02 UTC, NISZ LibreOffice Team
Details
Another example file from Excel with condition “Not equals” (10.40 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-06-18 10:02 UTC, NISZ LibreOffice Team
Details
Another example file from Excel with condition “Not equals” (10.38 KB, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet)
2021-06-18 10:03 UTC, NISZ LibreOffice Team
Details
Screenshot of the original document with condition “Not equals” side by side in Excel and Calc (137.76 KB, image/png)
2021-06-18 10:03 UTC, NISZ LibreOffice Team
Details

Note You need to log in before you can comment on or make changes to this bug.
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