Problem with Questionnaire Date Field (Moodle 2.0)

Problem with Questionnaire Date Field (Moodle 2.0)

by Miguel Rubio -
Number of replies: 4

Hello to all,

I'm having some trouble with the Questionnaire Date Field when working with Moodle 2.0 If I use a language different from English (en)  I won't be able to enter a date. It will always reply stating that the format is incorrect.

It will accept it if I only enter the year (or any other single number) but will be stored incorrectly.

Any suggestions?

Congrats for this great module, we have found it really useful.

Best regards

Miguel Angel

Average of ratings: -
In reply to Miguel Rubio

Re: Problem with Questionnaire Date Field (Moodle 2.0)

by Joseph Rézeau -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Thanks for reporting this bug. Assigned (to me) as CONTRIB-2922.

I have confirmed the bug (using French) and will look into it very shortly and report here.

I suppose you are you using Spanish on your Moodle site? Which error message are you getting:

(1) El formato de fecha introducida: $a no se corresponde con el mostrado en el ejemplo.

or:

(2) El formato de fecha introducida: 14/3/1945 no se corresponde con el mostrado en el ejemplo.

Joseph

In reply to Joseph Rézeau

Re: Problem with Questionnaire Date Field (Moodle 2.0)

by Miguel Rubio -

Hi,

Thanks for your prompt reply

I've tried with several languages

With spanish I get

El formato de fecha introducida: $a no se corresponde con el mostrado en el ejemplo.

But when I try to implement it in an US english (en_us) course I get

The date entered: 11/11/1945 does not correspond to the format shown in the example.

Kind regards

Miguel Angel Rubio

In reply to Joseph Rézeau

Re: Problem with Questionnaire Date Field (Moodle 2.0)

by Joseph Rézeau -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Bug CONTRIB-2922 has been fixed. Is available immediately from the relevant Moodle CVS repository* or some time tomorrow as a zipped package.

Thanks to Miguel for reporting it.

Joseph

*For example, for Spanish, download new lang file here.

In reply to Joseph Rézeau

Re: Problem with Questionnaire Date Field (Moodle 2.0)

by Miguel Rubio -

Thanks to Joseph for fixing it smile

Miguel Angel