rds: show rds clock-time as broken down time instead of UTC time in debug menu

Change-Id: I931182ccd20cf8899f3ce9b6b8d7c7c5f4ea006f
This commit is contained in:
Bertrik Sikken 2012-02-07 19:50:33 +01:00
parent f637072632
commit 01397c4ff1

View file

@ -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;
}