summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2008-08-25 10:01:26 +0000
committerBastien Nocera <hadess@src.gnome.org>2008-08-25 10:01:26 +0000
commit961c3f0d8c0f4a43782c0df25eebc85f2944913d (patch)
tree64f7e3a6c0a85501aa9a42d6f00a98c27efea172 /daemon
parent934aa8f0edf358c6d142526b032c2a3da3c2c784 (diff)
downloadgvfs-961c3f0d8c0f4a43782c0df25eebc85f2944913d.tar.gz
Same as below but for the webdav's getlastmodified response (Closes:
2008-08-25 Bastien Nocera <hadess@hadess.net> * daemon/gvfsbackenddav.c (ms_response_to_file_info): Same as below but for the webdav's getlastmodified response (Closes: #538573) svn path=/trunk/; revision=1906
Diffstat (limited to 'daemon')
-rw-r--r--daemon/gvfsbackenddav.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/daemon/gvfsbackenddav.c b/daemon/gvfsbackenddav.c
index b0be1353..24c2b34c 100644
--- a/daemon/gvfsbackenddav.c
+++ b/daemon/gvfsbackenddav.c
@@ -877,9 +877,16 @@ ms_response_to_file_info (MsResponse *response,
}
else if (node_has_name (node, "getlastmodified"))
{
- if (g_time_val_from_iso8601 (text, &tv))
- g_file_info_set_modification_time (info, &tv);
- }
+ SoupDate *sd;
+ GTimeVal 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);
+ }
+ }
}
}