foldynl / QLog

Amateur radio logbook software
GNU General Public License v3.0
132 stars 18 forks source link

Some anomalies in the input and processing of " QSLr Date" #192

Closed dl2ki closed 1 year ago

dl2ki commented 1 year ago

Yesterday I got some new QSL cards, and entered the data in QLog.

For the first time I used the field "QSLRDATE" and entered the date in "Edit-Mode". In the field "Paper, Received" you can enter a date. The default in "Edit-Mode" is "02.01.00".

Screenshot_20230408_090301

The default for "Edit Value" in the QSO list is "31.12.99".

Screenshot_20230408_090555

In "Edit-Mode" the input of the year is limited to 2 digits. Therefore I entered the date "07.04.23" in the field "Paper, Received".

Screenshot_20230408_081804

In the QLog database the date appears as "07.04.1923".

Screenshot_20230408_081920

If I accept the default date "31.12.99" in the QSO list with "Edit Value",

Screenshot_20230408_092856

this value appears in the QLog database:

Screenshot_20230408_092953

I can neither delete this date in the QSO list with "Edit Value", nor in the "Edit-Mode".

The pictures represent examples. Other manual entries in date fields have not yet been further checked.

foldynl commented 1 year ago

in general, it is not recommended to use the date in the YYMMDD format after the year 2000, for the reason you are sending now. The year format is controlled by the environment settings. Therefore, it will be necessary to change your environment settings to the year format YYYYMMDD.

dl2ki commented 1 year ago

My attempts to change the date format to 4-digit years were unsuccessful. I have not found a way to set this under Kubuntu 22.04.

According to my research, it is no longer possible to change the date format with KDE5. It is fixed in the "Locales".

I also haven't noticed yet that entering 4-digit year numbers is not possible in other programs. Programs like "KOrganizer" display the date correctly.

Screenshot_20230417_184729

Therefore I cannot understand at the moment why QLog only allows 2-digit year numbers.

foldynl commented 1 year ago

just for tracking the issue. EN locale has a shortDate year in format YYYY but DE locale has the shortDate year in format YY what caused the issue. QLog does not use the longDate format because it contains a lot of additional information. It seems so. that shortDate is very compact for QLog usage.

dl2ki commented 1 year ago

Yes, but I have no idea about the internal structures in KDE, Plasma or QT applications.

Anyway, with 2-digit years, for example, you can't use "Date Range" in the statistics window either. I don't use these date fields at the moment. But in the database the dates of the QSO's are correct, so I can use QLog!

Screenshot_20230418_104232

Screenshot_20230418_104315

Screenshot_20230418_104346

Perhaps a solution to the problem will be found later.