BREAKING CHANGE: Use ISO 8601 for 'ts' in cross-wiki summary.

Bug: T141164
Change-Id: Id0f029dd2fec0197bc01a1103fb569d086dec724
This commit is contained in:
Matthew Flaschen 2016-07-27 17:00:05 -04:00
parent debd9afffd
commit f845f6cc7b
2 changed files with 5 additions and 1 deletions

View file

@ -1,8 +1,12 @@
July, 2016 July, 2016
----------- -----------
* BREAKING CHANGE: In the cross-wiki summary in ApiEchoNotifications,
'ts' is now ISO 8601.
* BREAKING CHANGE: JS variables: wgEchoSeenTime now uses ISO 8601, and * BREAKING CHANGE: JS variables: wgEchoSeenTime now uses ISO 8601, and
alert/notice instead of alert/message. wgEchoInitialNotifCount has alert/notice instead of alert/message. wgEchoInitialNotifCount has
been removed. been removed.
* ApiEchoMarkSeen is moving to ISO 8601. Adjust your client; see API
documentation.
April, 2016 April, 2016
----------- -----------

View file

@ -447,7 +447,7 @@ class ApiEchoNotifications extends ApiCrossWikiBase {
$output['sources'] = EchoForeignNotifications::getApiEndpoints( $wikis ); $output['sources'] = EchoForeignNotifications::getApiEndpoints( $wikis );
// Add timestamp information // Add timestamp information
foreach ( $output['sources'] as $wiki => &$data ) { foreach ( $output['sources'] as $wiki => &$data ) {
$data['ts'] = $timestampsByWiki[$wiki]->getTimestamp( TS_MW ); $data['ts'] = $timestampsByWiki[$wiki]->getTimestamp( TS_ISO_8601 );
} }
return $output; return $output;
} }