(bug 15348) prop=categories returns timestamps that aren't in ISO 8601 format
authorRoan Kattouw <catrope@users.mediawiki.org>
Thu, 28 Aug 2008 16:26:27 +0000 (16:26 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Thu, 28 Aug 2008 16:26:27 +0000 (16:26 +0000)
includes/api/ApiQueryCategories.php

index 9ec0d7a..a1583a4 100644 (file)
@@ -138,7 +138,7 @@ class ApiQueryCategories extends ApiQueryGeneratorBase {
                                if ($fld_sortkey)
                                        $vals['sortkey'] = $row->cl_sortkey;
                                if ($fld_timestamp)
-                                       $vals['timestamp'] = $row->cl_timestamp;
+                                       $vals['timestamp'] = wfTimestamp(TS_ISO_8601, $row->cl_timestamp);
 
                                $data[] = $vals;
                        }