Why does restore change the question created/modified dates?

Why does restore change the question created/modified dates?

by Tim Hunt -
Number of replies: 1
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

In restore_create_categories_and_questions::process_question, it does:

$data->timecreated  = $this->apply_date_offset($data->timecreated);
$data->timemodified = $this->apply_date_offset($data->timemodified);

This seems really odd to me. The time a question was created is useful meta-data, not part of the course settings. Therefore, to adjust this date based on the way the course start date is changing seems wrong.

What do other people think?

Average of ratings: -
In reply to Tim Hunt

Re: Why does restore change the question created/modified dates?

by Emma Richardson -
Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Plugin developers

I would agree especially when we are sharing questions.  No-one would know who had changed it last or when it was last updated for sure.