mirror of
https://github.com/zeek/zeek.git
synced 2025-10-12 19:48:20 +00:00
Merge remote-tracking branch 'origin/topic/johanna/gh-4521'
* origin/topic/johanna/gh-4521: Change x509 not_before/not_after to not be based on local timezone
This commit is contained in:
commit
a22837536d
7 changed files with 28 additions and 6 deletions
|
@ -151,7 +151,7 @@ double X509Common::GetTimeFromAsn1(const ASN1_TIME* atime, file_analysis::File*
|
|||
lTime.tm_yday = 0;
|
||||
lTime.tm_isdst = 0; // No DST adjustment requested
|
||||
|
||||
lResult = mktime(&lTime);
|
||||
lResult = timegm(&lTime);
|
||||
|
||||
if ( lResult ) {
|
||||
if ( lTime.tm_isdst != 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue