merging ENGINE-780-take2; this fix solves the problem for the Windows platform, too
authorVolker Birk <vb@pep-project.org>
Fri, 31 Jul 2020 00:11:06 +0200
changeset 4913ceaa392217db
parent 4909 10048803d2ac
parent 4910 347f8b793204
child 4914 2be7ff8ffbbc
merging ENGINE-780-take2; this fix solves the problem for the Windows platform, too
     1.1 --- a/src/etpan_mime.c	Thu Jul 30 15:03:14 2020 +0200
     1.2 +++ b/src/etpan_mime.c	Fri Jul 31 00:11:06 2020 +0200
     1.3 @@ -549,8 +549,10 @@
     1.4      result->tm_year = et->dt_year - 1900;
     1.5      result->tm_gmtoff = 36L * (long) et->dt_zone;
     1.6  
     1.7 +    // Normalize to UTC and then forget the offset.
     1.8      time_t t = timegm_with_gmtoff(result);
     1.9      gmtime_r(&t, result);
    1.10 +    result->tm_gmtoff = 0;
    1.11  
    1.12      return result;
    1.13  }