Simplify timezone-related code and fix some minor bugs in it.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Nov 2010 13:11:10 +0000 (13:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 23 Nov 2010 13:11:10 +0000 (13:11 +0000)
commit8c3aa3ffb01249f96bb34481c53abf37f471764d
tree162391544e4e5d72c92ebf2ad1846bb89ad95326
parenta4984245b6e01e4534d841ea12008793dd2a312c
Simplify timezone-related code and fix some minor bugs in it.

Try to make the chain of preprocessor checks for different ways of getting
time zone from the CRT more clear.

Also call _tzset() for all MSVC versions, not just MSVC8+ (closes #12700). We
should probably call tzset() for the other compilers too, in fact.

And multiply the timezone returned from ftime() by 60 as it's supposed to be
in minutes and not seconds as needed.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66245 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/common/datetime.cpp