X-Git-Url: https://git.openssl.org/?p=openssl.git;a=blobdiff_plain;f=crypto%2Fasn1%2Fa_utctm.c;h=b855867dc1d30693bff1e8aa925f95884d64eccc;hp=f6652e708104846bc16cc0e3ef39ba84b0511ae2;hb=4dbe060f2c911f1fbd617f9de7e7fde5964fae44;hpb=e2122268286a1bc17dc7c84e21a2d2748f93ddf7 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; }