summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gen_util/clock.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gen_util/clock.c b/gen_util/clock.c
index ede29b729..f35296021 100644
--- a/gen_util/clock.c
+++ b/gen_util/clock.c
@@ -108,8 +108,13 @@ computer_clock_update_func(ClockData * cd, time_t current_time)
if (cd->hourformat == 0) {
/* This format string is used, to display the actual time in
12 hour format. */
- if (strftime(hour, 20, _("%I:%M %p"), tm) == 20)
- hour[19] = '\0';
+ if (cd->orient == ORIENT_LEFT || cd->orient == ORIENT_RIGHT) {
+ if (strftime(hour, 20, _("%I:%M\n%p"), tm) == 20)
+ hour[19] = '\0';
+ } else {
+ if (strftime(hour, 20, _("%I:%M %p"), tm) == 20)
+ hour[19] = '\0';
+ }
} else if (cd->hourformat == 1) {
/* This format string is used, to display the actual time in
24 hour format. */