Index: trunk/extensions/CheckUser/api/ApiQueryCheckUser.php |
— | — | @@ -52,7 +52,7 @@ |
53 | 53 | |
54 | 54 | $ips = array(); |
55 | 55 | foreach ( $res as $row ) { |
56 | | - $timestamp = $row->cuc_timestamp; |
| 56 | + $timestamp = wfTimestamp( TS_ISO_8601, $row->cuc_timestamp ); |
57 | 57 | $ip = strval( $row->cuc_ip ); |
58 | 58 | $xff = $row->cuc_xff; |
59 | 59 | |
— | — | @@ -110,7 +110,7 @@ |
111 | 111 | $edits = array(); |
112 | 112 | foreach ( $res as $row ) { |
113 | 113 | $edit = array( |
114 | | - 'timestamp' => $row->cuc_timestamp, |
| 114 | + 'timestamp' => wfTimestamp( TS_ISO_8601, $row->cuc_timestamp ), |
115 | 115 | 'ns' => $row->cuc_namespace, |
116 | 116 | 'title' => $row->cuc_title, |
117 | 117 | 'user' => $row->cuc_user_text, |
— | — | @@ -160,12 +160,12 @@ |
161 | 161 | $agent = $row->cuc_agent; |
162 | 162 | |
163 | 163 | if ( !isset( $users[$user] ) ) { |
164 | | - $users[$user]['end'] = $row->cuc_timestamp; |
| 164 | + $users[$user]['end'] = wfTimestamp( TS_ISO_8601, $row->cuc_timestamp ); |
165 | 165 | $users[$user]['editcount'] = 1; |
166 | 166 | $users[$user]['ips'][] = $ip; |
167 | 167 | $users[$user]['agents'][] = $agent; |
168 | 168 | } else { |
169 | | - $users[$user]['start'] = $row->cuc_timestamp; |
| 169 | + $users[$user]['start'] = wfTimestamp( TS_ISO_8601, $row->cuc_timestamp ); |
170 | 170 | $users[$user]['editcount']++; |
171 | 171 | if ( !in_array( $ip, $users[$user]['ips'] ) ) { |
172 | 172 | $users[$user]['ips'][] = $ip; |
Index: trunk/extensions/CheckUser/api/ApiQueryCheckUserLog.php |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | $log = array(); |
40 | 40 | foreach ( $res as $row ) { |
41 | 41 | $log[] = array( |
42 | | - 'timestamp' => $row->cul_timestamp, |
| 42 | + 'timestamp' => wfTimestamp( TS_ISO_8601, $row->cul_timestamp ), |
43 | 43 | 'checkuser' => $row->cul_user_text, |
44 | 44 | 'type' => $row->cul_type, |
45 | 45 | 'reason' => $row->cul_reason, |