From 9e6b5ea3da00c48424776b6f02bf79a705d346e6 Mon Sep 17 00:00:00 2001 From: hoppler Date: Sat, 30 Jun 2018 10:05:07 +0200 Subject: [PATCH] Remove obsolete Japan timezone modification Removes the not used change of internal time by 9 Hours for Japan timezone. Fixes false timestamps reported by softether RPC commands --- src/Mayaqua/Kernel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Mayaqua/Kernel.c b/src/Mayaqua/Kernel.c index cb59c3fd..9af8629a 100644 --- a/src/Mayaqua/Kernel.c +++ b/src/Mayaqua/Kernel.c @@ -2116,7 +2116,7 @@ void UINT64ToSystem(SYSTEMTIME *st, UINT64 sec64) return; } - sec64 = SafeTime64(sec64 + 32400000ULL); + sec64 = SafeTime64(sec64); tmp64 = sec64 / (UINT64)1000; millisec = (UINT)(sec64 - tmp64 * (UINT64)1000); sec = (UINT)tmp64; @@ -2140,7 +2140,7 @@ UINT64 SystemToUINT64(SYSTEMTIME *st) sec64 = (UINT64)time * (UINT64)1000; sec64 += st->wMilliseconds; - return sec64 - 32400000ULL; + return sec64; } // Get local time in UINT64