From 0a0cf09a6f20c665ec69ec4a7bdece9441ff8e78 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Wed, 11 Feb 2009 08:08:58 +0000 Subject: [PATCH] moodlelib.php: Improve the phpdoc comment for userdate. --- lib/moodlelib.php | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index dc8fde36db..fe16067cea 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -1288,15 +1288,15 @@ function make_timestamp($year, $month=1, $day=1, $hour=0, $minute=0, $second=0, * If parameter fixday = true (default), then take off leading * zero from %d, else mantain it. * - * @uses HOURSECS - * @param int $date timestamp in GMT - * @param string $format strftime format - * @param float $timezone - * @param bool $fixday If true (default) then the leading - * zero from %d is removed. If false then the leading zero is mantained. - * @return string + * @param int $date the timestamp in UTC, as obtained from the database. + * @param string $format strftime format. You should probably get this using + * get_string('strftime...', 'langconfig'); + * @param float $timezone by default, uses the user's time zone. + * @param bool $fixday If true (default) then the leading zero from %d is removed. + * If false then the leading zero is mantained. + * @return string the formatted date/time. */ -function userdate($date, $format='', $timezone=99, $fixday = true) { +function userdate($date, $format = '', $timezone = 99, $fixday = true) { global $CFG; @@ -1306,7 +1306,7 @@ function userdate($date, $format='', $timezone=99, $fixday = true) { } if (empty($format)) { - $format = get_string('strftimedaydatetime'); + $format = get_string('strftimedaydatetime', 'langconfig'); } if (!empty($CFG->nofixday)) { // Config.php can force %d not to be fixed. -- 2.39.5