Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.7
-
MOODLE_27_STABLE
-
MOODLE_403_STABLE
-
MDL-45452-course_completion_excel_dates -
Description
At the bottom of the "Course completion" report are the following two links:
Download in spreadsheet format (UTF-8 .csv)
Download in Excel-compatible format (.csv)
Both currently output dates in whatever human-readable format is set as the user's locale preference for the site in general. These are (generally) not Excel-compatible, so Excel sees them as arbitrary strings rather than as dates, which can be sorted, reformatted, etc.
Specifically choosing "Excel-compatible" should instead output dates that Excel can recognize as such. ISO 8601 format, userdate('%Y-%m-%d %H:%M:%S'), fits the bill. The referenced commit does so.