From 9360ab4e3bf34dfb6edef5a0e8f77f202538db5e Mon Sep 17 00:00:00 2001 From: Mike Black W9MDB Date: Tue, 10 Sep 2024 23:54:47 -0500 Subject: [PATCH] Fix mingw build --- src/misc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/misc.c b/src/misc.c index c6a40809c..b4b86331d 100644 --- a/src/misc.c +++ b/src/misc.c @@ -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 {