Last modified: 2011-04-14 15:11:15 UTC
I am often copying datestamps around and dropping them into URLs as offsets to page history and user contribs. Currently I need to copy "2001-01-15T16:12:34" and turn it into "20010115161234" before it will work. This seems unnecessary as the former is easily parsed.
Looks like currently we require the Z on the end: > return wfTimestamp(TS_MW, '2001-01-15T16:12:34'); 19700101000000 > return wfTimestamp(TS_MW, '2001-01-15T16:12:34Z'); 20010115161234 Per spec, if the timezone isn't specified it should be assumed to be local time, but probably just taking it in as UTC will be fine for our purposes. Do we want to accept other specified timezones though? This would require applying the transformation on input.