Fixed timezone conversion

This commit is contained in:
Luca Deri
2019-09-10 22:15:23 +02:00
parent 068611e8ba
commit 0f9107bef3
15 changed files with 69 additions and 68 deletions
+2 -2
View File
@@ -755,7 +755,7 @@ void getSSLorganization(struct ndpi_detection_module_struct *ndpi_struct,
#ifdef DEBUG_TLS
printf("[CERTIFICATE] notBefore %u [%s]\n", mktime(&utc), utcDate);
#endif
flow->protos.stun_ssl.ssl.notBefore = mktime(&utc);
flow->protos.stun_ssl.ssl.notBefore = timegm(&utc);
}
}
@@ -784,7 +784,7 @@ void getSSLorganization(struct ndpi_detection_module_struct *ndpi_struct,
#ifdef DEBUG_TLS
printf("[CERTIFICATE] notAfter %u [%s]\n", mktime(&utc), utcDate);
#endif
flow->protos.stun_ssl.ssl.notAfter = mktime(&utc);
flow->protos.stun_ssl.ssl.notAfter = timegm(&utc);
}
}
}