Date and time on export files

Date and time on export files

by Scott Karren -
Number of replies: 1

All

I am using 2.1.4. Is there a way to show the date and time a choice answer was submitted in the export files?  Right now if I download as an Excel it shows the persons name and their choice but not when they submitted it.

Scott Karren

Average of ratings: -
In reply to Scott Karren

Re: Date and time on export files

by brami petluri -

Yes u can do it by editing moodle source code. In mod\choice\report.php, below line no:136, add the following line

$myxls->write_string(0,5,get_string("choicedate","choice"));

And below line no:169, add the following lines

$choicedate = date("M-d-Y",mktime($user->timemodified));

$myxls->write_string($row,5,$choicedate);

 

Regards,Brahmaiah Petluri ,

Moodle Development Team, Human Logic