From 272b07a50f6c5b52243a4a53f4ea6c7f5ca4fe7f Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Wed, 28 Jun 2017 00:12:32 +0200 Subject: win32/strptime: fix for negative timezones I bet this has been fixed in gnulib, too. Signed-off-by: Johannes Schindelin Signed-off-by: Ron Yorston --- win32/strptime.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'win32') diff --git a/win32/strptime.c b/win32/strptime.c index 89d4fd2a4..5dab9b4f4 100644 --- a/win32/strptime.c +++ b/win32/strptime.c @@ -447,6 +447,8 @@ __strptime_internal (const char *rp, const char *fmt, struct tm *tm, } if (val > 1200) return NULL; + if (neg) + val = -val; } break; case 'E': -- cgit v1.2.3-55-g6feb