From 344c09a0b5d22b3f136e73c0fa0d43e445b04612 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 26 Jan 2016 16:53:20 +0100 Subject: [PATCH] fixup! Special-case the MSYS2_TZ environment variable It is no longer necessary, as Git for Windows' fork of the MSYS2 runtime knows to pass on POSIX-compliant timezones. Signed-off-by: Johannes Schindelin --- compat/mingw.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compat/mingw.c b/compat/mingw.c index a58ea5760f..833aa5cec3 100644 --- a/compat/mingw.c +++ b/compat/mingw.c @@ -2623,6 +2623,9 @@ static void setup_windows_environment() *tmp = '/'; } + if (!getenv("TZ") && (tmp = getenv("MSYS2_TZ"))) + setenv("TZ", tmp, 1); + /* simulate TERM to enable auto-color (see color.c) */ if (!getenv("TERM")) setenv("TERM", "cygwin", 1);