Make sure we use the UTC time when converting time from PKCS#11.
authorStefan Walter <stefw@src.gnome.org>
Thu, 28 Aug 2008 02:42:21 +0000 (02:42 +0000)
committerStefan Walter <stefw@src.gnome.org>
Thu, 28 Aug 2008 02:42:21 +0000 (02:42 +0000)
* gp11/gp11-slot.c: Make sure we use the UTC time when
converting time from PKCS#11.

svn path=/trunk/; revision=1275

gp11/gp11-slot.c

index bd4fd33..6eab9fe 100644 (file)
@@ -580,7 +580,7 @@ gp11_slot_get_token_info (GP11Slot *slot)
                if (!strptime (string, "%Y%m%d%H%M%S", &tm))
                        tokeninfo->utc_time = -1;
                else
-                       tokeninfo->utc_time = mktime (&tm);
+                       tokeninfo->utc_time = timegm (&tm);
        } else {
                tokeninfo->utc_time = -1;
        }