diff options
author | Richard Hughes <richard@hughsie.com> | 2015-03-25 11:28:33 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2015-03-25 11:28:33 +0000 |
commit | 0e3e1e184c5d13464eef1dd5f2017bca9644f5da (patch) | |
tree | d4e143fa3097d34dfc8671f2ed0f31df81a5219f | |
parent | 97e6abea4af61983f5706ec81cd2d53fdd0b76d1 (diff) | |
download | appstream-glib-0e3e1e184c5d13464eef1dd5f2017bca9644f5da.tar.gz |
Assume the INF DriverVer is UTC
Fixes: https://github.com/hughsie/appstream-glib/issues/44
-rw-r--r-- | libappstream-glib/as-inf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libappstream-glib/as-inf.c b/libappstream-glib/as-inf.c index 55dcf7a..52bda79 100644 --- a/libappstream-glib/as-inf.c +++ b/libappstream-glib/as-inf.c @@ -915,10 +915,10 @@ as_inf_get_driver_version (GKeyFile *keyfile, guint64 *timestamp, GError **error dv_split[0]); return NULL; } - dt = g_date_time_new_local (atoi (split[2]), - atoi (split[0]), - atoi (split[1]), - 0, 0, 0); + dt = g_date_time_new_utc (atoi (split[2]), + atoi (split[0]), + atoi (split[1]), + 0, 0, 0); if (dt == NULL) { g_set_error (error, AS_INF_ERROR, |