From f845f6cc7b5d37b95eab5ec934b40be9ad89f4c7 Mon Sep 17 00:00:00 2001 From: Matthew Flaschen Date: Wed, 27 Jul 2016 17:00:05 -0400 Subject: [PATCH] BREAKING CHANGE: Use ISO 8601 for 'ts' in cross-wiki summary. Bug: T141164 Change-Id: Id0f029dd2fec0197bc01a1103fb569d086dec724 --- RELEASE_NOTES | 4 ++++ includes/api/ApiEchoNotifications.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/RELEASE_NOTES b/RELEASE_NOTES index 736de32fe..ac6174767 100644 --- a/RELEASE_NOTES +++ b/RELEASE_NOTES @@ -1,8 +1,12 @@ 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 alert/notice instead of alert/message. wgEchoInitialNotifCount has been removed. +* ApiEchoMarkSeen is moving to ISO 8601. Adjust your client; see API + documentation. April, 2016 ----------- diff --git a/includes/api/ApiEchoNotifications.php b/includes/api/ApiEchoNotifications.php index 12591a4bb..37a7db873 100644 --- a/includes/api/ApiEchoNotifications.php +++ b/includes/api/ApiEchoNotifications.php @@ -447,7 +447,7 @@ class ApiEchoNotifications extends ApiCrossWikiBase { $output['sources'] = EchoForeignNotifications::getApiEndpoints( $wikis ); // Add timestamp information foreach ( $output['sources'] as $wiki => &$data ) { - $data['ts'] = $timestampsByWiki[$wiki]->getTimestamp( TS_MW ); + $data['ts'] = $timestampsByWiki[$wiki]->getTimestamp( TS_ISO_8601 ); } return $output; }