From 4dbe060f2c911f1fbd617f9de7e7fde5964fae44 Mon Sep 17 00:00:00 2001 From: Geoff Thorpe Date: Mon, 29 May 2000 03:50:37 +0000 Subject: It seems that mktime does what is required here. Certainly timegm() can not be used because it is not available on all systems (most notably, win32). --- crypto/asn1/a_utctm.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'crypto/asn1/a_utctm.c') diff --git a/crypto/asn1/a_utctm.c b/crypto/asn1/a_utctm.c index f6652e7081..b855867dc1 100644 --- a/crypto/asn1/a_utctm.c +++ b/crypto/asn1/a_utctm.c @@ -291,10 +291,5 @@ time_t ASN1_UTCTIME_get(const ASN1_UTCTIME *s) } #undef g2 - return timegm(&tm)-offset*60; /* FIXME: timegm is non-standard, - * typically we only have mktime (which - * interprets the struct tm according to - * the current time zone setting). - * Also time_t is inappropriate for general - * UTC times because it may a 32 bit type. */ + return mktime(&tm)-offset*60; } -- cgit v1.2.3