[Libreoffice-bugs] [Bug 125878] Dates imported incorrectly from dbf file

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed Jun 12 13:17:05 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=125878

Eike Rathke <erack at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #3 from Eike Rathke <erack at redhat.com> ---
Connecting/opening the file in Base yields the same results, which makes sense
as Calc .dbf import uses Base functionality.

For the first record we have in connectivity/source/commontools/FValue.cxx
connectivity::ORowSetValue::getDateTime() for case DataType::TIMESTAMP a
css::util::DateTime aValue with

{NanoSeconds = 0, Seconds = 2, Minutes = 1025, Hours = 17, Day = 1, Month = 6,
Year = 2019, IsUTC = 0 '\000'}

from which following the Minutes = 1025 of course leads to a later date+time.

Didn't investigate why the Base routines obtain that value.

Odd enough is that 1025 minutes are exactly 17 ours and 5 minutes, 17:05, the
expected time.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190612/a06de857/attachment.html>


More information about the Libreoffice-bugs mailing list