]> git.mjollnir.org Git - moodle.git/commitdiff
Slight fix for daily x-axis (nicer-looking numbers)
authormartin <martin>
Mon, 29 Jul 2002 01:38:31 +0000 (01:38 +0000)
committermartin <martin>
Mon, 29 Jul 2002 01:38:31 +0000 (01:38 +0000)
course/loggraph.php

index 00ff6c4f4eb64f8e390a482bc42888fbbf5e4f92..8913d3d41bd04bf0536b706850dfd9211b24ccad 100644 (file)
@@ -86,7 +86,8 @@
                $logs[$i] = 0;
            }
            $logs[$i] = $logcount->count;
-           $hours[$i] = userdate($timestart, "%I %p");
+           $hh = (int)userdate($timestart, "%I");
+           $hours[$i] = userdate($timestart, "$hh %p");
            $i++;
            $timestart = $timefinish;
        }