Can someone help me out with the 12 and 24 hr options in the HTML files. Some are easy to change, others not. I typically see this though:
Code:// Convert an hours component of "0" to "12" [COLOR="red"]//[/COLOR]currentHours = ( currentHours == 0 ) ? currentHours + 24 : currentHours; // Convert the hours component to 12-hour format if needed [COLOR="Red"]//[/COLOR] currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours; // Convert an hours component of "0" to "12" [COLOR="red"]//[/COLOR]currentHours = ( currentHours == 0 ) ? 12 : currentHours;
Is removing the red // all you need to do to convert from 24hr to 12hr time?
If I am looking at this correct, the first part if the hour is 0 it adds 24? This part I dont understand
The second part makes sense, if the hours are over 12 it subtracts 12.
The third part if the hour is 0, it changes it to 12. This makes sense also.
So what does that first part do?
Well, *usually* removing that is all you need to do. I have at least one lockscreen though (REDLOCK, IIRC) where that doesn't seem to be the case, and I haven't figured out what's up with that one.