Do not set the timestamp value using time(), as it will be overwritten
authorEmmanuele Bassi <ebassi@gnome.org>
Mon, 21 Jul 2008 13:05:24 +0000 (13:05 +0000)
committerEmmanuele Bassi <ebassi@src.gnome.org>
Mon, 21 Jul 2008 13:05:24 +0000 (13:05 +0000)
commitbcdc09e641b471a2e3f809b1248bd40fd64995de
tree4c19556b29841ee43fc20b04dae96f6beec1eead
parentf573de59d2686399c68a6e2ad58d85aed8b8cd47
Do not set the timestamp value using time(), as it will be overwritten

2008-07-21  Emmanuele Bassi  <ebassi@gnome.org>

* glib/gbookmarkfile.c:
(bookmark_app_info_new): Do not set the timestamp value
using time(), as it will be overwritten anyway. (#535223,
Michael Meeks)

(parse_application_element),
(bookmark_app_info_dump): Support the "modified" attribute,
which takes an ISO-formatted string instead of a Unix time
stamp, to keep the number of g_strdup_printf() calls to a
minimum.

* glib/gtimer.c:
(g_time_val_to_iso8601): Do not use strftime(): we know
the format and contents of the ISO 8601 date format we
use.

* tests/bookmarks/valid-03.xbel: Add a test file for the
modified attribute.

svn path=/trunk/; revision=7231
ChangeLog
glib/gbookmarkfile.c
glib/gtimer.c
tests/bookmarks/valid-03.xbel [new file with mode: 0644]