diff options
author | Philip Withnall <philip@tecnocode.co.uk> | 2014-11-08 23:33:28 +0000 |
---|---|---|
committer | Philip Withnall <philip@tecnocode.co.uk> | 2014-11-09 22:45:27 +0000 |
commit | 0681b9b92654a6408cac64698cd9ba3c61b764ca (patch) | |
tree | 40654d0622aa469cab88da126d68ea9a3b241f62 | |
parent | 40d11faf6fa5afc2bea31a288d45b11b45f38d75 (diff) | |
download | libgdata-0681b9b92654a6408cac64698cd9ba3c61b764ca.tar.gz |
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
-rw-r--r-- | gdata/gdata-parser.c | 20 |
1 files changed, 1 insertions, 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 |