summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Levin <al.le@rockbox.org>2009-06-24 13:07:46 +0000
committerAlexander Levin <al.le@rockbox.org>2009-06-24 13:07:46 +0000
commit8b5d32f556277b132916f797920a5b93917f7767 (patch)
tree956f55f7b0c52b485d6600eacef2718b2bc3f438
parent388e31cb965d776483fdb6ea6b419f857a7ef5c2 (diff)
downloadrockbox-8b5d32f556277b132916f797920a5b93917f7767.tar.gz
rockbox-8b5d32f556277b132916f797920a5b93917f7767.zip
Correct the slight misalignment of the clock (FS#10334 by Andre Lupa)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21489 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/menus/time_menu.c4
-rw-r--r--docs/CREDITS1
2 files changed, 3 insertions, 2 deletions
diff --git a/apps/menus/time_menu.c b/apps/menus/time_menu.c
index 1b70570ae4..6d5370473e 100644
--- a/apps/menus/time_menu.c
+++ b/apps/menus/time_menu.c
@@ -176,13 +176,13 @@ static void draw_timedate(struct viewport *vp, struct screen *display)
176 176
177 if (valid_time(tm)) 177 if (valid_time(tm))
178 { 178 {
179 snprintf(time, 16, "%02d:%02d:%02d %s", 179 snprintf(time, 16, "%02d:%02d:%02d%s",
180 global_settings.timeformat == 0 ? tm->tm_hour : 180 global_settings.timeformat == 0 ? tm->tm_hour :
181 ((tm->tm_hour + 11) % 12) + 1, 181 ((tm->tm_hour + 11) % 12) + 1,
182 tm->tm_min, 182 tm->tm_min,
183 tm->tm_sec, 183 tm->tm_sec,
184 global_settings.timeformat == 0 ? "" : 184 global_settings.timeformat == 0 ? "" :
185 tm->tm_hour>11 ? "P" : "A"); 185 tm->tm_hour>11 ? " P" : " A");
186 snprintf(date, 16, "%s %d %d", 186 snprintf(date, 16, "%s %d %d",
187 str(LANG_MONTH_JANUARY + tm->tm_mon), 187 str(LANG_MONTH_JANUARY + tm->tm_mon),
188 tm->tm_mday, 188 tm->tm_mday,
diff --git a/docs/CREDITS b/docs/CREDITS
index 14a3df6f37..8f86b6b73e 100644
--- a/docs/CREDITS
+++ b/docs/CREDITS
@@ -475,6 +475,7 @@ Jeffrey Goode
475Raafat Akkad 475Raafat Akkad
476Michaël Burtin 476Michaël Burtin
477Davide Quarta 477Davide Quarta
478Andre Lupa
478 479
479The libmad team 480The libmad team
480The wavpack team 481The wavpack team