From 4840682e258b85acbbe4254de950f72cb7757041 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20Wallm=C3=A9nius?= Date: Thu, 15 May 2008 20:16:38 +0000 Subject: [PATCH] FS#8995 by Mark Ganson fixing the display of am/pm for the digital clock mode git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17526 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/clock/clock_draw_digital.c | 2 +- docs/CREDITS | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/plugins/clock/clock_draw_digital.c b/apps/plugins/clock/clock_draw_digital.c index 790beb4c29..062f291df8 100644 --- a/apps/plugins/clock/clock_draw_digital.c +++ b/apps/plugins/clock/clock_draw_digital.c @@ -55,7 +55,7 @@ void digital_clock_draw(struct screen* display, buffer_printf(buffer, buffer_pos, "%c", display_colon?':':' '); buffer_printf(buffer, buffer_pos, "%02d", time->minute); if(settings->general.hour_format==H12){ - if(time->hour>12){ + if(time->hour>=12){ buffer_printf(buffer, buffer_pos, "P");/* PM */ }else{ buffer_printf(buffer, buffer_pos, "A");/* AM */ diff --git a/docs/CREDITS b/docs/CREDITS index 8ec78d77b7..dc43e283c9 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -389,6 +389,7 @@ Tomasz Wasilczyk Kenjiro Arai John Kaminar Joris Goosen +Mark Ganson The libmad team