(XMB) Use the same timedate format as PS3 XMB

This commit is contained in:
Jean-André Santoni 2015-11-03 12:36:20 +07:00
parent ea103fa7ec
commit dff0031145
2 changed files with 4 additions and 1 deletions

View File

@ -1689,7 +1689,7 @@ static void xmb_frame(void)
if (settings->menu.timedate_enable)
{
menu_display_timedate(timedate, sizeof(timedate), 0);
menu_display_timedate(timedate, sizeof(timedate), 4);
xmb_draw_text(menu, xmb, timedate,
width - xmb->margins.title.left - xmb->icon.size / 4,

View File

@ -479,6 +479,9 @@ void menu_display_timedate(char *s, size_t len, unsigned time_mode)
case 3: /* Time (hours-minutes) */
strftime(s, len, "%H:%M", localtime(&time_));
break;
case 4: /* Date and time, without year and seconds */
strftime(s, len, "%d/%m %H:%M", localtime(&time_));
break;
}
}