diff --git a/source/menu.cpp b/source/menu.cpp index a33b3fec..437b5b4e 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -2915,13 +2915,20 @@ static int MenuDiscList() lastrawtime = rawtime; timeinfo = localtime (&rawtime); if (dataed < 1){ - if((rawtime & 1)&&(Settings.hddinfo == hr12)) + if(Settings.hddinfo == hr12){ + if(rawtime & 1) strftime(theTime, sizeof(theTime), "%I:%M", timeinfo); - if((rawtime & 1)&&(Settings.hddinfo == hr24)) + else + strftime(theTime, sizeof(theTime), "%I %M", timeinfo); + } + if(Settings.hddinfo == hr24){ + if(rawtime & 1) strftime(theTime, sizeof(theTime), "%H:%M", timeinfo); - else + else strftime(theTime, sizeof(theTime), "%H %M", timeinfo); + } clockTime.SetText(theTime); + } else if (dataed > 0){