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:
Johanna Amann 2025-06-18 13:27:06 +01:00
commit a22837536d
7 changed files with 28 additions and 6 deletions

View file

@ -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 )