Changeset - 15c77f2dc645
[Not reviewed]
default
0 1 0
Nathan Brink (binki) - 15 years ago 2011-03-30 17:07:29
ohnobinki@ohnopublishing.net
Fix output table's display of dates in the afternoon. Thanks to report from Anthony Ciccarello.
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
inc/class.schedule.php
Show inline comments
 
@@ -610,9 +610,10 @@ class Schedule
 
  // Make the time "pretty"
 
  //--------------------------------------------------
 
  function prettyTime($t){
 
    if($t > 1259)
 
    if($t >= 1200)
 
      {
 
	$t = ($t-1200);
 
	if ($t > 1259)
 
	  $t = ($t - 1200);
 
	return substr($t, 0, strlen($t)-2) . ":" . substr($t, strlen($t)-2, strlen($t)) . " PM";
 
      } else {
 
      return substr($t, 0, strlen($t)-2) . ":" . substr($t, strlen($t)-2, strlen($t)) . " AM";
0 comments (0 inline, 0 general)