From 18c16bfc9e517d44bf84449e58cc5b10bde07f09 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Sat, 9 Aug 2014 21:10:03 +0100 Subject: =?UTF-8?q?core:=20Tweak=20generated=20ISO8601=20dates=20to=20appe?= =?UTF-8?q?ase=20Google=E2=80=99s=20parsers?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Even though the protocol documentation claims to accept RFC3339 dates, the servers have recently started rejecting dates formatted as ‘2014-08-09T21:10:05Z’ which don’t include microseconds and specify the timezone non-numerically. Since the issue hasn’t been resolved at Google’s end, we need to hack the date formats generated by libgdata to appease the servers, completely undermining the point of having a defined protocol and RFC to base the code on. Sigh. Change gdata_parser_int64_to_iso8601() to produce dates in the format ‘YYYY-MM-DDTHH:MM:SS.000001+00:00’. This was previously used by the JSON output generator, so perhaps the server breakage was introduced when Google started rolling out the JSON APIs. https://bugzilla.gnome.org/show_bug.cgi?id=732809 --- gdata/tests/youtube.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'gdata/tests/youtube.c') diff --git a/gdata/tests/youtube.c b/gdata/tests/youtube.c index 1195bc3a..a1e070aa 100644 --- a/gdata/tests/youtube.c +++ b/gdata/tests/youtube.c @@ -967,8 +967,8 @@ test_parsing_yt_recorded (void) "gd:etag='W/\"CEMFSX47eCp7ImA9WxVUGEw.\"'>" "Judas Priest - Painkiller" "tag:youtube.com,2008:video:JAagedeKdcQ" - "2009-03-23T12:46:58Z" - "2006-05-16T14:06:37Z" + "2009-03-23T12:46:58.000001+00:00" + "2006-05-16T14:06:37.000001+00:00" "" "" "" @@ -1055,8 +1055,8 @@ test_parsing_yt_access_control (void) "gd:etag='W/\"CEMFSX47eCp7ImA9WxVUGEw.\"'>" "Judas Priest - Painkiller" "tag:youtube.com,2008:video:JAagedeKdcQ" - "2009-03-23T12:46:58Z" - "2006-05-16T14:06:37Z" + "2009-03-23T12:46:58.000001+00:00" + "2006-05-16T14:06:37.000001+00:00" "" "" "" @@ -1255,8 +1255,8 @@ test_parsing_georss_where (void) "xmlns:gml='http://www.opengis.net/gml'>" "Some video somewhere" "tag:youtube.com,2008:video:JAagedeKdcQ" - "2009-03-23T12:46:58Z" - "2006-05-16T14:06:37Z" + "2009-03-23T12:46:58.000001+00:00" + "2006-05-16T14:06:37.000001+00:00" "" "" "" @@ -1295,8 +1295,8 @@ test_parsing_georss_where (void) "xmlns:gml='http://www.opengis.net/gml'>" "Some video somewhere" "tag:youtube.com,2008:video:JAagedeKdcQ" - "2009-03-23T12:46:58Z" - "2006-05-16T14:06:37Z" + "2009-03-23T12:46:58.000001+00:00" + "2006-05-16T14:06:37.000001+00:00" "" "" "" -- cgit v1.2.1