summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2008-08-22 14:19:56 +0000
committerBastien Nocera <hadess@src.gnome.org>2008-08-22 14:19:56 +0000
commit441a995dbad10811708a7aae0d55637a8e988e55 (patch)
tree8ef217ad369a19501699cec8e04bada8d4f536e9
parent9dfe413520533138930b948b1a552e1fff4c9e95 (diff)
downloadgvfs-441a995dbad10811708a7aae0d55637a8e988e55.tar.gz
Use libsoup to parse the "Last-Modified" header, not the ISO-8601 parsing
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 svn path=/trunk/; revision=1898
-rw-r--r--ChangeLog7
-rw-r--r--daemon/gvfsbackendhttp.c11
2 files changed, 16 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8afe8f69..b2da3c55 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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
+
2008-08-21 Hans Petter Jansson <hpj@novell.com>
* daemon/gvfsbackendgphoto2.c (ensure_ignore_prefix)
diff --git a/daemon/gvfsbackendhttp.c b/daemon/gvfsbackendhttp.c
index 7e91a056..04501e99 100644
--- a/daemon/gvfsbackendhttp.c
+++ b/daemon/gvfsbackendhttp.c
@@ -607,9 +607,16 @@ query_info_ready (SoupSession *session,
"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);
+ }
}