[libgdata] core: Eliminate ISO 8601 formatting workaround for dates



commit 732017e4e5235e28c578cc3367fa0c4548b65495
Author: Philip Withnall <philip tecnocode co uk>
Date:   Sat Nov 8 23:33:28 2014 +0000

    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 files changed, 1 insertions(+), 19 deletions(-)
---
diff --git a/gdata/gdata-parser.c b/gdata/gdata-parser.c
index 2877471..0e655a5 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]