Bug 132547 - Date conversion from HSQLDB to Firebird
Summary: Date conversion from HSQLDB to Firebird
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
6.4.2.2 release
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Database-Firebird-Migration
  Show dependency treegraph
 
Reported: 2020-04-30 08:36 UTC by Chartagnat
Modified: 2021-04-26 03:47 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
HSQLBD database before conversion (171.59 KB, application/octet-stream)
2020-04-30 08:38 UTC, Chartagnat
Details
Firebird database after conversion (171.44 KB, application/octet-stream)
2020-04-30 08:40 UTC, Chartagnat
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chartagnat 2020-04-30 08:36:02 UTC
Description:
When converting a HSQLBD base to Firebird, the field containig a date is systematically decreased of one day: January 5th, 1994 becomes January 4th, 1994... This occurs in 6.4.2.2 and 6.4.3.2.

Steps to Reproduce:
1.Set option to use experimental features and restart LibreOffice
2.Open HSQLDB database
3.Accept the conversion to Firebird
4.Opent the table to check the date values

Actual Results:
Date value in the firebird table is decreased by 1 day.

Expected Results:
Same value in the date field in HSQLBD and Firebird tables.


Reproducible: Always


User Profile Reset: Yes


OpenGL enabled: Yes

Additional Info:
See upper
Comment 1 Chartagnat 2020-04-30 08:38:43 UTC
Created attachment 160115 [details]
HSQLBD database before conversion
Comment 2 Chartagnat 2020-04-30 08:40:24 UTC
Created attachment 160116 [details]
Firebird database after conversion

Problem is xith the date fiels in MVTS table.
Comment 3 Alex Thurgood 2020-04-30 08:52:04 UTC
I seem to recall that this is already known, due to the fact that HSQLDB takes into account timezones when storing a date, whereas Firebird (did) does not, or the mechanisms for doing so were different (and not implemented in the migration assistant).
Comment 4 Alex Thurgood 2020-04-30 09:04:53 UTC
Also, please read the information at this link for more general caveats of what is, and isn't supported :

https://wiki.documentfoundation.org/Documentation/FirebirdMigration
Comment 5 Alex Thurgood 2020-04-30 09:06:14 UTC
@Chartagnat : please provide us with a sample hsqldb file against which we can test and try to reproduce the migration failure.

Please also indicate your timezone and any daylight savings change applicable.
Comment 6 Alex Thurgood 2020-04-30 09:08:44 UTC
And please read also this :

https://wiki.documentfoundation.org/Documentation/HowTo/MigrateFromHSQLDB

which explains that you have to prepare your hsqldb database before migration to take account of the differences in date/time handling between HSQLDB and Firebird.
Comment 7 QA Administrators 2021-03-26 04:20:53 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2021-04-26 03:47:29 UTC
Dear Chartagnat,

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