Index: mod/questionnaire/locallib.php =================================================================== RCS file: /cvsroot/moodle/contrib/plugins/mod/questionnaire/locallib.php,v retrieving revision 1.49.2.32 diff -u -r1.49.2.32 locallib.php --- mod/questionnaire/locallib.php 2 Oct 2008 08:44:53 -0000 1.49.2.32 +++ mod/questionnaire/locallib.php 6 Oct 2008 21:15:06 -0000 @@ -2910,9 +2910,9 @@ return 'wrongdaterange'; } else { if ($insert) { - $thisdate = trim(userdate ($thisdate, '%Y-%m-%d', '', false)); + $thisdate = trim(userdate ($thisdate, '%Y-%m-%d', '1', false)); } else { - $thisdate = trim(userdate ($thisdate, $dateformat, '', false)); + $thisdate = trim(userdate ($thisdate, $dateformat, '1', false)); } } return $thisdate; Index: mod/questionnaire/questiontypes/questiontypes.class.php =================================================================== RCS file: /cvsroot/moodle/contrib/plugins/mod/questionnaire/questiontypes/questiontypes.class.php,v retrieving revision 1.31.2.21 diff -u -r1.31.2.21 questiontypes.class.php --- mod/questionnaire/questiontypes/questiontypes.class.php 20 Jun 2008 13:36:54 -0000 1.31.2.21 +++ mod/questionnaire/questiontypes/questiontypes.class.php 6 Oct 2008 21:15:07 -0000 @@ -1735,7 +1735,7 @@ if (!empty($this->counts) && is_array($this->counts)) { ksort ($this->counts); // sort dates into chronological order while(list($text,$num) = each($this->counts)) { - $text = userdate ( $text, $dateformat); // change timestamp into readable dates + $text = userdate ( $text, $dateformat, '1'); // change timestamp into readable dates $table->data[] = array($num, $text); } } else {