Thread: PRS-500 Direct Page Control Hack
View Single Post
Old 08-28-2007, 06:15 AM   #66
alexbe
Junior Member
alexbe began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jul 2007
Device: Sony Reader
Thumbs up

Quote:
Originally Posted by b0lt View Post
There's a minor problem with the clock. Times from 00:00 to 00:59 are shown as PM when using 12 hour mode. This is because the hour is set to 12 before the am/pm check is done. Line 835 should be after the if block immediately after, i.e.

Code:
if (hours == 0) hours = 12;
if (hours > 11) {
	m = "pm";
	if (hours > 12) hours -= 12
}
Did this, it works right/ we should add this to all hacks, i think.
alexbe is offline   Reply With Quote