aboutsummaryrefslogtreecommitdiff
path: root/dep/g3dlite/source/System.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dep/g3dlite/source/System.cpp')
-rw-r--r--dep/g3dlite/source/System.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/dep/g3dlite/source/System.cpp b/dep/g3dlite/source/System.cpp
index 809f05c0ab4..f6b0e038f27 100644
--- a/dep/g3dlite/source/System.cpp
+++ b/dep/g3dlite/source/System.cpp
@@ -888,7 +888,11 @@ void System::initTime() {
if (localTimeVals) {
// tm_gmtoff is already corrected for daylight savings.
+ #ifdef __CYGWIN__
+ local = local + _timezone;
+ #else
local = local + localTimeVals->tm_gmtoff;
+ #endif
}
m_realWorldGetTickTime0 = local;