little fix

This commit is contained in:
giantpune 2009-05-20 08:53:02 +00:00
parent 2dc38a8354
commit ef285a4977

View File

@ -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
strftime(theTime, sizeof(theTime), "%H %M", timeinfo);
}
clockTime.SetText(theTime);
}
else if (dataed > 0){