From 0681b9b92654a6408cac64698cd9ba3c61b764ca Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Sat, 8 Nov 2014 23:33:28 +0000 Subject: core: Eliminate ISO 8601 formatting workaround for dates Google have fixed the issue upstream, so the workaround is no longer needed. Thanks Google! https://bugzilla.gnome.org/show_bug.cgi?id=737799 https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3595 --- gdata/gdata-parser.c | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/gdata/gdata-parser.c b/gdata/gdata-parser.c index 28774714..0e655a5d 100644 --- a/gdata/gdata-parser.c +++ b/gdata/gdata-parser.c @@ -241,29 +241,11 @@ gchar * gdata_parser_int64_to_iso8601 (gint64 _time) { GTimeVal time_val; - gchar *iso8601; - gchar **date_time_components; - gchar *retval; time_val.tv_sec = _time; time_val.tv_usec = 0; - iso8601 = g_time_val_to_iso8601 (&time_val); - - /* FIXME: Work around for Google's incorrect ISO 8601 implementation. - * They appear to not like dates in the format ā€˜2014-08-09T21:07:05Z’ - * which specify a timezone using ā€˜Z’ and no microseconds. - * - * See: https://bugzilla.gnome.org/show_bug.cgi?id=732809 - * https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=3595 - * http://stackoverflow.com/a/17630320/2931197 */ - date_time_components = g_strsplit (iso8601, "Z", 2); - retval = g_strjoinv (".000001+00:00", date_time_components); - g_strfreev (date_time_components); - - g_free (iso8601); - - return retval; + return g_time_val_to_iso8601 (&time_val); } gboolean -- cgit v1.2.1