Merge tag 'v0.21.22'

release v0.21.22
This commit is contained in:
Max Kellermann
2020-04-02 18:02:10 +02:00
48 changed files with 605 additions and 97 deletions

View File

@@ -77,15 +77,15 @@ static time_t
GetTimeZoneOffset() noexcept
{
time_t t = 1234567890;
struct tm tm;
tm.tm_isdst = 0;
#ifdef _WIN32
struct tm *p = gmtime(&t);
#else
struct tm tm;
tm.tm_isdst = 0;
struct tm *p = &tm;
gmtime_r(&t, p);
#endif
return t - mktime(&tm);
return t - mktime(p);
}
#endif /* !__GLIBC__ */