Bug 154681 - LibreOffice calc - a time counting error
Summary: LibreOffice calc - a time counting error
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.4.6.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-06 13:57 UTC by Vladimír Říha
Modified: 2023-04-12 18:14 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
an example of the bug (17.03 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-04-06 14:04 UTC, Vladimír Říha
Details
Sample file with dacimal values for date-time (18.22 KB, application/vnd.oasis.opendocument.spreadsheet)
2023-04-06 14:56 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimír Říha 2023-04-06 13:57:23 UTC
Description:
Wrong repeated time counting
(06.04.2023 13:00:00) + time(1;0;0) -> (06.04.2023 13:59:59)

look at www.sumava21.cz/pom/time_counting_error.ods

Steps to Reproduce:
1.06.04.2023 15:00:00
2.(1) + time(1;0;0) -> 06.04.2023 16:00:00
3.(2) + time(1;0;0) -> 06.04.2023 17:00:00
4. repeate cca 24x
5. -> 07.04.2023 14:59:59 ERROR

look at www.sumava21.cz/pom/time_counting_error.ods

Actual Results:
07.04.2023 14:59:59 ERROR

Expected Results:
07.04.2023 15:00:00


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 7.4.6.2 (x64) / LibreOffice Community
Build ID: 5b1f5509c2decdade7fda905e3e1429a67acd63d
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: cs-CZ (cs_CZ); UI: cs-CZ
Calc: CL
Comment 1 Vladimír Říha 2023-04-06 14:04:20 UTC
Created attachment 186517 [details]
an example of the bug
Comment 2 m_a_riosv 2023-04-06 14:56:11 UTC
Created attachment 186520 [details]
Sample file with dacimal values for date-time

Please take a look to
tdf#150049
tdf#133919

Round can help, see attached file.
Comment 3 Buovjaga 2023-04-12 13:07:43 UTC
(In reply to m.a.riosv from comment #2)
> Created attachment 186520 [details]
> Sample file with dacimal values for date-time
> 
> Please take a look to
> tdf#150049
> tdf#133919
> 
> Round can help, see attached file.

Vladimír: what do you think?
Comment 4 Vladimír Říha 2023-04-12 17:25:12 UTC
"miguelangelrv@libreoffice.org" explained the problem.

I changed the status to "Resolved", I hope this is correct.

Thanks.