Parse standard date formats in CommonsMetadata
completed by: ☃ unicodesnowman
mentors: Gergő Tisza
CommonsMetadata parses machine-readable data on image description pages and exposes them through the imageinfo API. Currently dates extracted from the description are output as they are, without any processing, which often results in date strings the clients of the API cannot deal with (e.g. EXIF timestamps).
Try to transform dates to a standard format when possible. You can use the wfTimestamp function with the TS_DB output format; date strings not recognized by that function can be returned without any transformation.
This task is T66014 in Wikimedia's issue tracker.
Students are required to read Wikimedia's general instructions first.