Bug 136366

Summary: LibreOffice Calc: Date-Time Calc error
Product: LibreOffice Reporter: IanF <ian_Libre>
Component: CalcAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED INSUFFICIENTDATA    
Severity: normal CC: buzea.bogdan, ian_Libre
Priority: medium    
Version: 7.0.0.3 release   
Hardware: x86-64 (AMD64)   
OS: Windows (All)   
Whiteboard:
Crash report or crash signature: Regression By:
Attachments: CALC test case for incorrect date time calc
it's ok. see this image

Description IanF 2020-09-01 12:41:48 UTC
Description:
Calc time subtraction not calculating correctly.

Calc difference than add diff back to original does not produce the 2nd date-time.

Steps to Reproduce:
1. Date1... 2020-09-01 11:18:08, 
2. Date2... 2020-09-01 11:29:27
2. Formular.... =Cell_2 - Cell_1
3. Gives incorrect Difference


Actual Results:
1. Date1... 2020-09-01 11:18:08, Date2... 2020-09-01 11:29:27
2. Calc date2-Date1, gives... 00:11:19 (not correct)

3. Date1 + Diff(2), gives... 2020-09-01 11:29:27(Correct)

Expected Results:
2. difference should be 00:21:19


Reproducible: Always


User Profile Reset: No



Additional Info:
Low priority, not holding me up, just thought I'd report it.
Comment 1 IanF 2020-09-01 12:45:21 UTC
Created attachment 164961 [details]
CALC test case for incorrect date time calc
Comment 2 BogdanB 2020-09-01 12:57:51 UTC
I consider to be ok:
the diference between 11:18:08 and 11:29:27 is 11 minutes and 19 seconds, so the diff is correct

And you have done a verification formula: the old time+ difference should be equal with A3, and it is correct (2020-09-01 11:29:27).

I dont understand where is the problem.  See the image. The result is ok
Comment 3 BogdanB 2020-09-01 12:58:15 UTC
Created attachment 164963 [details]
it's ok. see this image
Comment 4 BogdanB 2020-09-01 12:58:31 UTC
Verified in version
Version: 7.0.0.3 (x64)
Build ID: 8061b3e9204bef6b321a21033174034a5e2ea88e
CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: ro-RO (ro_RO); UI: en-US
Calc: threaded
Comment 5 QA Administrators 2021-03-01 04:08:59 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2021-04-01 03:54:26 UTC
Dear IanF,

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