After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 549006 - Add SoupDate to GTimeVal conversion
Add SoupDate to GTimeVal conversion
Status: RESOLVED FIXED
Product: libsoup
Classification: Core
Component: API
unspecified
Other Linux
: Normal normal
: ---
Assigned To: libsoup-maint@gnome.bugs
libsoup-maint@gnome.bugs
Depends on:
Blocks: 547133
 
 
Reported: 2008-08-22 13:56 UTC by Bastien Nocera
Modified: 2008-08-22 14:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
As above, nicked from soup_date_to_time_t (1.16 KB, patch)
2008-08-22 13:57 UTC, Bastien Nocera
none Details | Review
Updated (1.61 KB, patch)
2008-08-22 14:09 UTC, Bastien Nocera
committed Details | Review

Description Bastien Nocera 2008-08-22 13:56:57 UTC
+++ This bug was initially created as a clone of Bug #547133 +++

Patch attached below.
Comment 1 Bastien Nocera 2008-08-22 13:57:44 UTC
Created attachment 117220 [details] [review]
As above, nicked from soup_date_to_time_t
Comment 2 Bastien Nocera 2008-08-22 14:09:06 UTC
Created attachment 117221 [details] [review]
Updated

Make date_to_time_t() call date_to_timeval(), and set tv_usec to 0.
Comment 3 Bastien Nocera 2008-08-22 14:14:26 UTC
Thanks Dan!

2008-08-22  Bastien Nocera  <hadess@hadess.net>

	* libsoup/soup-date.c (soup_date_to_time_t),
	(soup_date_to_timeval):
	* libsoup/soup-date.h: Add a SoupDate to GTimeVal conversion
	function, for use in gvfs. #549006, with help from Dan Winship
	<danw@gnome.org>