Bug 145781

Summary: bigger or smaller than a date may not correct i think
Product: LibreOffice Reporter: arlifence <arlifence>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED NOTABUG    
Severity: normal CC: miguelangelrv
Priority: medium    
Version: 7.2.1.2 release   
Hardware: All   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:

Description arlifence 2021-11-19 16:19:11 UTC
Description:
if i use this filter coindition :

date > 2021-11-19

LibreOffice will show all record that the date bigger than 2021-11-19 00:00:00 while not starting from 2021-11-20 00:00:00

so i think this behavor is not conrect



Actual Results:
if i use this filter coindition :

date > "2021-11-19"

LibreOffice will show all records that the date bigger than "2021-11-19 00:00:00 " while not starting from 2021-11-20 00:00:00



Expected Results:
all records should start from "2021-11-20 00:00:00" while not starting from "2021-11-19 00:00:00"


Reproducible: Always


User Profile Reset: No



Additional Info:
[Information automatically included from LibreOffice]
Locale: zh-CN
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
Comment 1 m_a_riosv 2021-11-21 22:23:18 UTC
Please attach a sample file.
Comment 2 m_a_riosv 2021-11-22 09:02:54 UTC
Please answer here, don't send private messages.

In the data, you have the dates with their hours.

Time with dates, are represented as a decimal of an entered number, please read in detail https://help.libreoffice.org/7.2/en-US/text/scalc/guide/calc_date.html?&DbPAR=WRITER&System=WIN

2021-11-02 = 44502
2021-11-02 00:00:01 = 44502.0000115741
44502,0000115741 > 44502 in the spreadsheet comparison, although they are the same day.

You can use >= 2021-11-03 or > 2021-11-02 23:59:59, or having the dates without hours in the column.

For me not a bug.