summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2012-02-07 19:50:33 +0100
committerBertrik Sikken <bertrik@sikken.nl>2012-03-12 08:42:53 +0100
commit01397c4ff156013c22f1348a7ff1659a4d50f9ae (patch)
tree440d65cc998901815a7a79a2f32674e68905d5e7 /apps
parentf6370726323c5e3351d23341be9fc0a5af950a67 (diff)
downloadrockbox-01397c4ff156013c22f1348a7ff1659a4d50f9ae.tar.gz
rockbox-01397c4ff156013c22f1348a7ff1659a4d50f9ae.zip
rds: show rds clock-time as broken down time instead of UTC time in debug menu
Change-Id: I931182ccd20cf8899f3ce9b6b8d7c7c5f4ea006f
Diffstat (limited to 'apps')
-rw-r--r--apps/debug_menu.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c
index f8f2161d12..fbf6d53fe0 100644
--- a/apps/debug_menu.c
+++ b/apps/debug_menu.c
@@ -1875,7 +1875,12 @@ static int radio_callback(int btn, struct gui_synclist *lists)
1875 rds_get_pi(), rds_get_ps()); 1875 rds_get_pi(), rds_get_ps());
1876 simplelist_addline(SIMPLELIST_ADD_LINE, "RT:%s", 1876 simplelist_addline(SIMPLELIST_ADD_LINE, "RT:%s",
1877 rds_get_rt()); 1877 rds_get_rt());
1878 simplelist_addline(SIMPLELIST_ADD_LINE, "CT:%d", rds_get_ct()); 1878 time_t seconds = rds_get_ct();
1879 struct tm* time = gmtime(&seconds);
1880 simplelist_addline(SIMPLELIST_ADD_LINE,
1881 "CT:%4d-%02d-%02d %02d:%02d",
1882 time->tm_year + 1900, time->tm_mon + 1, time->tm_mday,
1883 time->tm_hour, time->tm_min, time->tm_sec);
1879#endif 1884#endif
1880 return ACTION_REDRAW; 1885 return ACTION_REDRAW;
1881} 1886}