Created attachment 120937 [details]
Open Form and have a look at the different dates shown from the same datasource.
Open the attached database.
Open the form.
There are 5 fields:
"ID" for the primary key.
"Date", which is a date field in the table, shown in a date field of the form and also shown in a formatted field.
"Date_as_Integer", which is an integer field in the table, shown in a date field of the form and also shown in a formatted field.
Now have a look to the value of "Date_as_Integer" in the formatted field. differs 2 day to the same value shown by the date field.
Open the table. I have formatted the "Date_as_Integer" in the table-view as a date. The table shows the same behaviour as the formatted field of the form.
Seems the date field of the form starts counting with date 1900-01-01 as '0', the formatted field starts counting with date 1899-12-30 as '0'.
All this appears only if the base-value of the field is an integer value. This would be used in the internal HSQLDB, because there isn't a function like dateadd integrated. I'm using queries like this:
SELECT "Date", DATEDIFF('dd','1899-12-30',"Date")+21 AS "Returdate" FROM "Table"
This gives the correct value in formatted field and in a formatted query, but doesn't show the correct value in a date-field.
I have forgotten to write down the testsystem:
Tested with OpenSUSE 13.2 64bit rpm Linux.
Tested with LO 188.8.131.52.beta1, 184.108.40.206, 3.6.7 (no older installed hier.
Tested also with AOO 4.1.2
All tested Office-Versions give the same result. Could be it is inherited by OOo, but I can't test it here, because I haven't installed the early versions any more.
Win 7 Pro 64-bit Version: 220.127.116.11.alpha0+
Build ID: 81fa5340191baf8687f9c82f1f414f5afc86b529
Threads 4; Ver: Windows 6.1; Render: default;
TinderBox: Win-x86@62-merge-TDF, Branch:MASTER, Time: 2015-12-03_21:19:19
Locale: fi-FI (fi_FI)
Have tested with the first available LO-version (LO 18.104.22.168, OpenSUSE 42.1 64bit rpm Linux). Couldn't open the form. LO crashes immediately.
Could be this one is inherited from OOo, but I can't start a form with a integer-field, which is connected to a formatted field in LO 3.3.0. LO crashes and would only start the form when deleting this field.
** Please read this message in its entirety before responding **
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/
2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword
Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!
tested again with
Build ID: cfbb8b5090537e79ba70e250ddee86d53facbe15
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: kde4;
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-10-18_22:54:20
Locale: de-DE (de_DE.UTF-8); Calc: group
on OpenSUSE 42.2. Same buggy behavior. Different dates in date-field and formatted-field if datasource is integer.
Same behavior in LO 22.214.171.124 on same system.
Have set this one to Inherited from OOo - couldn't test, but same behavior in LO 3.6 and AOO.
Bug still exists with LO 126.96.36.199, 64bit rpm Linux.