-
Improvement
-
Resolution: Fixed
-
Major
-
3.7.7, 3.8.4, 3.10
-
MOODLE_310_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE
-
MOODLE_310_STABLE
-
In Moodle 3.7, course custom fields were introduced and there is something I have wondered about. Why have you formatted dates as human readable strings it makes no sence. A webservice API is an integration tool and now you are dictating how other systems should display / use the date.
We have a problem using the dates, since we would like to see if the date has passed or not and now we have to parse the date first. This could be an issue, since the date also takes into account the users preferred language and parses from that setting. This means it is quite messy determining the correct format, parse it and then comparing it to the actual date.
Why is not just an unix timestamp as the rest of moodle dates?
I would almost categorize this as a bug, since it is almost useless if you use it with an external system.