Questionnaire confirmation email date format

Questionnaire confirmation email date format

by James Hagen -
Number of replies: 1

In my time zone (Australia), date question types require dates to be input in day/month/year format, e.g. 15/05/2014.

When I download Questionnaire responses in text format, dates are also in day/month/year format.

However, when email confirmations are generated by Questionnaire, dates are formatted in year-month-day format, e.g. 2014-05-15.

I suspect it's due to the Time API. See: http://docs.moodle.org/dev/Time_API

Is it possible somehow to make the date format in email confirmations consistent with Questionnaire date question type?

Average of ratings: -
In reply to James Hagen

Re: Questionnaire confirmation email date format

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

Thanks for reporting this, James. I'll have a look ASAP.

Joseph

EDIT.-

You write "When I download Questionnaire responses in text format, dates are also in day/month/year format."

Are you sure? Actually, dates in the "text format" download are formatted as yyyy-mm-dd in order to be recognised as dates when imported into spreadsheets. And dates in the email notification are formatted in the same yyyy-mm-dd format.

Which version of Questionnaire are you using?

Joseph