summaryrefslogtreecommitdiff
path: root/apps/recorder
diff options
context:
space:
mode:
Diffstat (limited to 'apps/recorder')
-rw-r--r--apps/recorder/icons.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/recorder/icons.c b/apps/recorder/icons.c
index 81de5b8..adcfda5 100644
--- a/apps/recorder/icons.c
+++ b/apps/recorder/icons.c
@@ -23,6 +23,8 @@
#include "sprintf.h"
#include "rtc.h"
+#include "settings.h"
+
#include "icons.h"
unsigned char slider_bar[] =
@@ -277,6 +279,12 @@ void statusbar_time(int hour, int minute)
hour <= 23 &&
minute >= 0 &&
minute <= 59 ) {
+ if ( global_settings.timeformat ) { /* 12 hour clock */
+ hour %= 12;
+ if ( hour == 0 ) {
+ hour +=12;
+ }
+ }
snprintf(buffer, sizeof(buffer), "%02d:%02d", hour, minute);
}
else {