diff options
author | Nikias Bassen | 2014-05-21 10:13:28 +0200 |
---|---|---|
committer | Nikias Bassen | 2014-05-21 10:13:28 +0200 |
commit | 2e0242bfb0cb032641f2da5fd9e6ddafe3e47f96 (patch) | |
tree | eb6b9962a98bf4fb736ed733aa6f46bbc956c447 | |
parent | 135164ae0676ccd2f5cbb9f88d4ea4bd35d1a584 (diff) | |
download | libplist-2e0242bfb0cb032641f2da5fd9e6ddafe3e47f96.tar.gz libplist-2e0242bfb0cb032641f2da5fd9e6ddafe3e47f96.tar.bz2 |
xplist: Fix PLIST_DATE parsing in xml_to_node()
-rw-r--r-- | src/xplist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xplist.c b/src/xplist.c index 62c624e..200d942 100644 --- a/src/xplist.c +++ b/src/xplist.c @@ -404,7 +404,7 @@ static void xml_to_node(xmlNodePtr xml_node, plist_t * plist_node) tm_utc = gmtime(&timev); timev -= (mktime(tm_utc) - timev); } - data->timeval.tv_sec = (long)time; + data->timeval.tv_sec = (long)timev; data->timeval.tv_usec = 0; data->type = PLIST_DATE; data->length = sizeof(struct timeval); |