Fixes #5341: correctly detect timezone on windows

Why did you use a windows specific class to tell the same thing as the non windows case ?