gnome-keyring r1275 - in trunk: . gp11



Author: nnielsen
Date: Thu Aug 28 02:42:21 2008
New Revision: 1275
URL: http://svn.gnome.org/viewvc/gnome-keyring?rev=1275&view=rev

Log:
	* gp11/gp11-slot.c: Make sure we use the UTC time when 
	converting time from PKCS#11.


Modified:
   trunk/ChangeLog
   trunk/gp11/gp11-slot.c

Modified: trunk/gp11/gp11-slot.c
==============================================================================
--- trunk/gp11/gp11-slot.c	(original)
+++ trunk/gp11/gp11-slot.c	Thu Aug 28 02:42:21 2008
@@ -580,7 +580,7 @@
 		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;
 	}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]