Joseph Rézeau
Posts made by Joseph Rézeau
Hi Antonio,
Sorry, one more string to add to your Portuguese language file:
$string['wrongdaterange'] = 'ERROR! The year must be set in the 1902 to 2037 range.';
(see this discussion).
Joseph
Hi Elvis,
This question has been asked many times, and the answer depends on your Moodle version Please use the Advanced Search option and query this Quiz module forum for an answer.
Joseph
The date format is using the php mktime function. This is very useful for automatic date checking and (re-)formatting. For example, the following conversions will occur:
| date entered |
date displayed |
| 16/9/07 |
16/09/2007 |
32/1/08 ![]() |
31/01/2008 |
| 29/2/2007 (not a leap year!) |
1/03/2007 |
| 6/6/1666 |
31/12/1969 or 1/1/1970 |
However, this type of date is supposed to apply to "current" dates, and thus only applies in the range of years from 1902 to 2037. In the context of questionnaires/surveys, etc. the date-type field is supposed to be used mainly for entering current dates, such as date-of-birth, date of applying for a job, date for an appointement, etc.
Another reason for this "restricted" range of dates is the ability of e.g. MS Office to format the date field at will (when the questionnaire data is exported to CSV and Excel) for dates in this range, but not for dates outside the range.
If a date outside the 1902-2037 range is absolutely needed as a response, I suggest using the plain text box format.
However, to make things more clear to respondent, I have modified the date question type behavior to issue an ERROR statement instead of reformating to 1/1/1970 when the date entered is not in the expected 1902-2037 range. This will take effect when I update to CVS in the coming days.
Joseph

- It would help a lot if you mentioned which version of Moodle and which version of Powerpoint (MS Office) you are using.
- Are there a lot of "fancy" formatting, pictures, etc. in your PPT presentation?
- Have you tried with a very simple PPT (a couple of pages, no images, etc.) first?
- Could you post a sample (short) PPT file here?
- These discussions may help (or not):
Best advice I can give is to avoid importing PPT into the Moodle Lesson activity altogether.
Joseph
