提交 4dbe060f 编写于 作者: G Geoff Thorpe

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).
上级 e2122268
......@@ -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;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册