Added seperate setting for 12/24h clock mode

This commit is contained in:
Sjef Verhoeven PE5PVB
2025-01-14 11:48:09 +01:00
parent 9a3bf8a5f9
commit d4f2a1a16f
6 changed files with 54 additions and 7 deletions
+1 -1
View File
@@ -809,7 +809,7 @@ void showCT() {
}
// Format the time based on region
if (radio.rds.region == 1) { // USA region: 12-hour AM/PM format
if (clockampm) { // USA region: 12-hour AM/PM format
// Determine AM/PM and adjust hour format
int hour = localtime(&t)->tm_hour;
String ampm = (hour >= 12) ? "PM" : "AM";