Changeset - 059422480f71
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2011-03-29 20:58:14
ohnobinki@ohnopublishing.net
In javascript (frontend), treat noon as 12:00 PM instead of 12:00 AM.
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
scripts/scheduleInput.js
Show inline comments
 
@@ -452,14 +452,15 @@ function prettyTime(time_str)
 
    var m;
 

	
 
    i_hour = time_str.substr(0, 2) * 1;
 
    if (i_hour <= 12)
 
    if (i_hour < 12)
 
	{
 
	    m = 'a';
 
	}
 
    else
 
	{
 
	    m = 'p';
 
	    i_hour -= 12;
 
	    if (i_hour > 12)
 
		i_hour -= 12;
 
	}
 
    hour_str = new String(i_hour);
 
    /* uncomment to have 08:01 instead of 8:01 */
0 comments (0 inline, 0 general)