jansorg / tom-ui

Qt5-based user interface for the tom time tracker
https://www.tomtime.dev
GNU General Public License v3.0
8 stars 2 forks source link

Reporting: Support different date formats in "Time range:" #106

Closed tanius closed 2 years ago

tanius commented 5 years ago

When enabling "Template: Show summary" in the report creation window, a small table will appear at the start of the report that shows the time range the report is about.

This is always using the U.S. American date format for now. Would be great to make this configurable. Probably Qt has support for configurable regional settings for date, time and number formats?

jansorg commented 5 years ago

@tanius tom is supporting English and German, tom-ui only uses the current environment which is then passed to tom. As a workaround, you could try if LANG=de_DE LC_ALL=de_DE.UTF8 tom-ui is showing the expected results. A good fix for this is probably to show a language dropdown in the report configuration.

jansorg commented 3 years ago

Will follow the locale, a new setting will allow to use the ISO format everywhere.

jansorg commented 2 years ago

Should be fixed by 0.12

tanius commented 2 years ago

As a workaround, you could try if LANG=de_DE LC_ALL=de_DE.UTF8 tom-ui is showing the expected results.

Indeed this works to influence the date format used in reports. (Only testing it now in tom-ui 0.12 though.) Actually LANG=de_DE tom-ui is enough to switch to a German date format.

And thanks for the ISO dates option!