projects
/
platform
/
upstream
/
gcr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd8b060
)
Make sure we use the UTC time when converting time from PKCS#11.
author
Stefan Walter
<stefw@src.gnome.org>
Thu, 28 Aug 2008 02:42:21 +0000
(
02:42
+0000)
committer
Stefan 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
patch
|
blob
|
history
diff --git
a/gp11/gp11-slot.c
b/gp11/gp11-slot.c
index
bd4fd33
..
6eab9fe
100644
(file)
--- a/
gp11/gp11-slot.c
+++ b/
gp11/gp11-slot.c
@@
-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;
}