¿ªÔÆÌåÓý

ctrl + shift + ? for shortcuts
© 2025 Groups.io

24 hour clock?


 

Hello,?
?
? ?Running Ubuntu mate, current version. Installed Qlog via flat pack and all is well except the clock is stuck in 12 hour am/pm mode.? I've searched through the wiki and here, but don't find any advice. I have set my system time to 24 hour format, and my desktop clock indicates in 24-hour format. (In recent versions of the mate desktop, you cannot set it one way or the other, it mirrors the system setting.).?
Q log still shows an AM/PM clock. I haven't found a setting anywhere. Is there a flag on launch that can switch it to 24-hour??
?
DE, KB9RLW.


 

I can't be a lot of help with Linux. ?But I know it should be driven by OS Settings. ?Some basic info is here in the wiki:
On my Mac I can change the '24-Hour Time' settings in preferences and it does adjust it.
?
?
Not a great example due to the time now but you can see the AM drop off and the leading zero.
?
Michael, AA5SH


 

¿ªÔÆÌåÓý

My solution was to set the laptop to 24hr UTC time and add a timezone clock to the task bar and set it to local time.

V/R,
Michael G. McGuire, K3SNO
484-703-9591
So Mote It Be.
On 1/9/25 15:17, Kevin Loughin via groups.io wrote:

Hello,?
?
? ?Running Ubuntu mate, current version. Installed Qlog via flat pack and all is well except the clock is stuck in 12 hour am/pm mode.? I've searched through the wiki and here, but don't find any advice. I have set my system time to 24 hour format, and my desktop clock indicates in 24-hour format. (In recent versions of the mate desktop, you cannot set it one way or the other, it mirrors the system setting.).?
Q log still shows an AM/PM clock. I haven't found a setting anywhere. Is there a flag on launch that can switch it to 24-hour??
?
DE, KB9RLW.


 

Kevin, your video on QLog got me over here. This is a real competitor for CQRlog for me. I really like this logger so far. I'm on Debian 12.

You said you're using the Flatpak. Flatpak applications run in a sandboxed environment, which may not inherit locale settings from the host system. To set a specific locale for a Flatpak application like QLog, you can pass environment variables when launching it or modify its Flatpak configuration.

1. Set Locale Temporarily
You can launch QLog with a custom locale by using the flatpak run command and passing the LC_* or LANG environment variables.

Example:
flatpak run --env=LC_TIME=en_DK.UTF-8 io.github.foldynl.QLog

This sets:
* LC_TIME: for 24-hour time format.

2. Set Locale Permanently for QLog
To apply these locale settings every time you launch QLog, you can modify its Flatpak environment variables:

a. Use flatpak override
Run the following command to set permanent environment variables for QLog:

flatpak override --user --env=LC_TIME=en_DK.UTF-8 io.github.foldynl.QLog

* This sets LC_TIME specifically for the QLog Flatpak.
* The --user flag ensures this change is applied only for your user account.

b. Verify the Override
To confirm the override has been set:

flatpak info --show-permissions io.github.foldynl.QLog

Look for the env section, which should now include LC_TIME.

4. Restart QLog
After setting the environment variables, restart QLog to apply the changes:

flatpak run io.github.foldynl.QLog

That worked for me to convert time to 24-hour time. You can add the following if you also want metric distance instead of miles:
--env=LC_MEASUREMENT=en_DK.UTF-8

de JP3REM


 

Thanks.? That solves my problem and makes perfect sense with the flatpak container or sandbox.? I still think it would be nice to have a preference setting though. :-)
??
73,
KB9RLW

On Saturday, January 18, 2025 at 10:15:08 AM MST, JP3REM Bill via groups.io <groups.io@...> wrote:


Kevin, your video on QLog got me over here. This is a real competitor for CQRlog for me. I really like this logger so far. I'm on Debian 12.

You said you're using the Flatpak. Flatpak applications run in a sandboxed environment, which may not inherit locale settings from the host system. To set a specific locale for a Flatpak application like QLog, you can pass environment variables when launching it or modify its Flatpak configuration.

1. Set Locale Temporarily
You can launch QLog with a custom locale by using the flatpak run command and passing the LC_* or LANG environment variables.

Example:
flatpak run --env=LC_TIME=en_DK.UTF-8 io.github.foldynl.QLog

This sets:
* LC_TIME: for 24-hour time format.

2. Set Locale Permanently for QLog
To apply these locale settings every time you launch QLog, you can modify its Flatpak environment variables:

a. Use flatpak override
Run the following command to set permanent environment variables for QLog:

flatpak override --user --env=LC_TIME=en_DK.UTF-8 io.github.foldynl.QLog

* This sets LC_TIME specifically for the QLog Flatpak.
* The --user flag ensures this change is applied only for your user account.

b. Verify the Override
To confirm the override has been set:

flatpak info --show-permissions io.github.foldynl.QLog

Look for the env section, which should now include LC_TIME.

4. Restart QLog
After setting the environment variables, restart QLog to apply the changes:

flatpak run io.github.foldynl.QLog

That worked for me to convert time to 24-hour time. You can add the following if you also want metric distance instead of miles:
--env=LC_MEASUREMENT=en_DK.UTF-8

de JP3REM






 

After a bit more experimenting, I like the en_SE.UTF-8 better. It uses 24h clock with the ISO date format yyyy/mm/dd instead of the dd/mm format that DK uses.


 

Kevin,

Thanks for the call out on the video

Try this if you want a date format closer to USA format, along with the 24-hour time:

flatpak override --user --env=LC_TIME=en_SE.UTF-8 io.github.foldynl.QLog

This gives you YYYY/MM/DD, which is the ISO format for dates. The en_DK.UTF-8 gives you a European date format DD/MM/YYYY which may be confusing for USA folks.

de JP3REM


 

I just want to say that in the next version, both the time format and the date format can be set in the settings.

p¨¢ 24. 1. 2025 v?8:36 odes¨ªlatel JP3REM Bill via <=[email protected]> napsal:

Kevin,

Thanks for the call out on the video

Try this if you want a date format closer to USA format, along with the 24-hour time:

flatpak override --user --env=LC_TIME=en_SE.UTF-8 io.github.foldynl.QLog

This gives you YYYY/MM/DD, which is the ISO format for dates. The en_DK.UTF-8 gives you a European date format DD/MM/YYYY which may be confusing for USA folks.

de JP3REM