date based sorting of courses in moodle

Re: date based sorting of courses in moodle

by Gareth J Barnard -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers
Dear Ankit,

Looking at format.php of the weeks format it appears to be stored in the standard unix number of seconds since the 1st January 1970 format. Therefore older dates will have a lower value than more recent dates.

This can be deduced from the calculations performed using the current time and the course start date along with the formatting applied with the userdate function in moodlelib.php utilising the formatting string 'strftimedateshort' fetched by the function get_string.

I hope this helps.

Cheers,

Gareth