Last modified: 2014-06-13 19:22:46 UTC
DateTimeOriginal (which comes from the |date= field of the information template) somtimes looks like <time datetime="2000-03-15">2000. március 15.</time>. The visible text part might be the wrong language, or a hard-to-parse format; we should just discard it and use the datetime value.
Looking into this..
Hi Tisza, isn't the date output based on your user preferences' language setting? You mean that we should drop the custom output in favor of the verbatim datetime value, in your example: <time datetime="2000-03-15">2000-03-15</time>? Or I am not interpreting your suggestion right? Thanks!
Hi Francis, the date is (usually) parsed from the HTML output generated by [[commons:Template:Information]], which calls [[commons:Template:ISOdate]], which eventually calls {{#time}} to format the date per user language preference. {{#time}} will use the content language of the wiki (English), not the user language, as far as I am aware. Even if it would be in the correct language, consumers of the API might want to do other things with the date than just display it, so a machine-readable format (simply "2000-03-15" in the example) is preferable IMO.