Fix mingw build

This commit is contained in:
Mike Black W9MDB 2024-09-10 23:54:47 -05:00
parent ca705649ce
commit 9360ab4e3b

View File

@ -2834,7 +2834,11 @@ char *date_strget(char *buf, int buflen, int localtime)
if (localtime)
{
mytm = localtime_r(&t, &result);
mytimezone = - (int)result.tm_gmtoff;
#if defined(_WIN32)
mytimezone = timezone;
#else
mytimezone = - (int)result.tm_gmtoff; // does not compile on mingw
#endif
}
else
{