Bug 126941 - Date format with frontslashes (15/08/2019) will be changed to format with points (15.08.2019) when input data in a date-field of a tablecontrol of a form.
Summary: Date format with frontslashes (15/08/2019) will be changed to format with poi...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Base (show other bugs)
Version:
(earliest affected)
6.2.4.2 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-15 11:20 UTC by Dmitry Mikhailov
Modified: 2024-07-21 06:28 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
screenshots and test database (179.40 KB, application/x-zip-compressed)
2019-08-15 11:20 UTC, Dmitry Mikhailov
Details
Same behavior with HSQLDB - nothing specific Firebird (12.42 KB, application/vnd.oasis.opendocument.database)
2024-07-21 06:28 UTC, Robert Großkopf
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dmitry Mikhailov 2019-08-15 11:20:19 UTC
Created attachment 153408 [details]
screenshots and test database
Comment 1 Robert Großkopf 2019-08-15 19:23:41 UTC
Have tested the attached Firebird-Database with LO 6.3.0.4.
Date format, choosen in the properties of the date-field of the tablecontrol, should be DD/MM/JJJJ (15/08/2019). When changing from editmode to input data it changes to DD.MM.JJJJ (15.08.2019). This seems to be the same with all frontslashes. Instead of frontslashes you could see points.

My system: OpenSUSE 15 64bit rpm Linux.
Comment 2 QA Administrators 2021-08-19 03:44:42 UTC Comment hidden (obsolete)
Comment 3 Robert Großkopf 2021-08-19 13:51:21 UTC
Bug is still the same under LO 7.2.0.3 on OpenSUSE 15.2 64bit rpm Linux.
Comment 4 Dmitry Mikhailov 2021-08-20 11:15:16 UTC
Bug is still the same 

LO version: 6.4.7.2
Linux 5.11; Locale: ru-RU (ru_RU.UTF-8)

I guess, that '/' symbol substituted with default i18N.ru delimeter - '.'
Thats why on en-EN locale this bug is not met.
Comment 5 Dmitry Mikhailov 2021-08-20 11:29:55 UTC Comment hidden (off-topic)
Comment 6 QA Administrators 2023-08-21 03:05:30 UTC Comment hidden (obsolete)
Comment 7 Mike Kaganski 2024-07-20 07:41:42 UTC
This bug is unclear.

There is no way for the report to define the controls' or fields' locale; as far as I see, the locale used is always the one set in Options->Languages and Locales->General. The en-US standard formats are suggested in field's editor; and the chosen standard format is automatically converted to the program's locale upon display, using the program's locale date separators.

If I understand correctly, this is completely unrelated to Firebird. Also, this is an enhancement request to support per-control / per-field locale in forms. If this is correct, then please remove the "Blocks" issue, and change the importance accordingly.

And there is nothing about *recognition* of dates in this report. It is about the existing data display. If there is some recognition problem, as mentioned in comment 5, it needs a separate issue. Especially when talking about Calc.
Comment 8 Robert Großkopf 2024-07-20 14:58:18 UTC
Has nothing special to do with Firebird. So I removed the block for Firebird here.

Open the form for editing, not for input data.
Right mousclick on column header a_date → Column.
You will get the properties of the field, which is a special field for dates. (Nice to have for getting a calendar for choosing dates.)
You could choose the format. It is independent from local settings. It has been set to DD/MM/YYYY
When opening the form for input data it will only be sown as DD.MM.YYYY.

Right mouseclick on header of table control → Insert column → Formatted field.
This field could also read dates. It could be formatted to local settings England (Australia). There you could choose DD/MM/YYYY.

Formatted field will show the date in the choosen format. Date field won't show the choosen format.

All tested with
Version: 24.8.0.1 (X86_64) / LibreOffice Community
Build ID: 6fd6cae02baed1e82d14ed2da1f2458092354dab
CPU threads: 6; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: de-DE (de_DE.UTF-8); UI: en-US
Calc: threaded
Comment 9 Dmitry Mikhailov 2024-07-20 21:05:33 UTC
little bit weird...

i disagree, that it is nothing special to do with Firebird.

I, as user, confused, when interface suggest as field format choice of:

1. standart (short)
2. standart (short YY)
3. standart (short YYYY)
4. standart (long)
5. YY/MM/DD
6. MM/DD/YY
7. YY/MM/DD
5. YYYY/MM/DD
6. MM/DD/YYYY
7. YYYY/MM/DD

and standalone SQL format (!!!)
8. YY-MM-DD
9. YYYY-MM-DD

point from 1 to 4 is format of local settings
point from 5 to 7 is date format where YY is substituted by year, etc..., and "/" is substituted by date delimeter.
point from 8 to 9 is date format where YY is substituted by year, etc..., and "-" is NOT substituted by anything.

also:
dropdown menu contains not "YY/MM/DD", but only if locale is en_en you can see "YY/MM/DD", but if ru_ru, then menu is changing to "ГГ/ММ/ДД", so year month day placeholder is substituted in dropdaown menu, and date placeholder is not.

so: I suggest to change current bug this way:

form dropdown menu substituting not only year month day placeholders, but date delimeters too.
Comment 10 Dmitry Mikhailov 2024-07-20 21:14:46 UTC
thank you for hack with formatted field. It is completely suit my needs. :)
Comment 11 Robert Großkopf 2024-07-21 06:28:24 UTC
Created attachment 195416 [details]
Same behavior with HSQLDB - nothing specific Firebird

Have taken the Firebird database and copied all to HSQLDB. Will show the same buggy behavior for a date control inside a tablecontrol.
Same buggy behavior also for a stand alone date control, so not specific to a tablecontrol.