Thread: PRS-500 Direct Page Control Hack
View Single Post
Old 08-15-2007, 02:55 PM   #52
b0lt
Junior Member
b0lt began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Aug 2007
Device: Sony Reader
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 > 11) {
	m = "pm";
	if (hours > 12) hours -= 12
}
if (hours == 0) hours = 12;
instead of
Code:
if (hours == 0) hours = 12;
if (hours > 11) {
	m = "pm";
	if (hours > 12) hours -= 12
}
b0lt is offline   Reply With Quote