diff options
Diffstat (limited to 'apps/debug_menu.c')
| -rw-r--r-- | apps/debug_menu.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/debug_menu.c b/apps/debug_menu.c index f8f2161..fbf6d53 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) rds_get_pi(), rds_get_ps()); simplelist_addline(SIMPLELIST_ADD_LINE, "RT:%s", rds_get_rt()); - simplelist_addline(SIMPLELIST_ADD_LINE, "CT:%d", rds_get_ct()); + time_t seconds = rds_get_ct(); + struct tm* time = gmtime(&seconds); + simplelist_addline(SIMPLELIST_ADD_LINE, + "CT:%4d-%02d-%02d %02d:%02d", + time->tm_year + 1900, time->tm_mon + 1, time->tm_mday, + time->tm_hour, time->tm_min, time->tm_sec); #endif return ACTION_REDRAW; } |