Commits

Anonymous committed 1d791d0

PM now starts at noon inseard of 1 PM

Comments (0)

Files changed (1)

 	if(fontSizer == null)
 		fontSizer = bg.addTextObject("Arial", "Arial", 18, "Black", 0, -1000);
 
-	var time_value = tHours > 12 ? (tHours-12) + tMinutes + " PM" : tHours + tMinutes + " AM";
+	var meridiem = tHours >= 12 ? " PM" : " AM";
+	var time_value = tHours > 12 ? (tHours-12) + tMinutes + meridiem : tHours + tMinutes + meridiem;
 	if(time == null)
 	{
 		time = bg.addTextObject(time_value, fonttype, 105, "white", 0, 0);