Bug 132547 - Date conversion from HSQLDB to Firebird
Summary: Date conversion from HSQLDB to Firebird
Status: RESOLVED DUPLICATE of bug 117732
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: 2024-07-21 16:14 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 Comment hidden (obsolete)
Comment 9 Mike Kaganski 2024-07-21 16:14:34 UTC

*** This bug has been marked as a duplicate of bug 117732 ***