gvfs r1898 - in trunk: . daemon



Author: hadess
Date: Fri Aug 22 14:19:56 2008
New Revision: 1898
URL: http://svn.gnome.org/viewvc/gvfs?rev=1898&view=rev

Log:
2008-08-22  Bastien Nocera  <hadess hadess net>

	* daemon/gvfsbackendhttp.c (query_info_ready): Use
	libsoup to parse the "Last-Modified" header, not
	the ISO-8601 parsing functions (Closes: #547133)
	Requires libsoup trunk



Modified:
   trunk/ChangeLog
   trunk/daemon/gvfsbackendhttp.c

Modified: trunk/daemon/gvfsbackendhttp.c
==============================================================================
--- trunk/daemon/gvfsbackendhttp.c	(original)
+++ trunk/daemon/gvfsbackendhttp.c	Fri Aug 22 14:19:56 2008
@@ -607,9 +607,16 @@
                                    "Last-Modified");
   if (text)
     {
+      SoupDate *sd;
       GTimeVal tv;
-      if (g_time_val_from_iso8601 (text, &tv))
-        g_file_info_set_modification_time (info, &tv);
+
+      sd = soup_date_new_from_string(text);
+      if (sd)
+        {
+          soup_date_to_timeval (sd, &tv);
+	  g_file_info_set_modification_time (info, &tv);
+          soup_date_free (sd);
+        }
     }
 
 



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