1
0
mirror of https://github.com/SoftEtherVPN/SoftEtherVPN.git synced 2024-11-06 17:50:40 +03:00

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
This commit is contained in:
hoppler 2018-06-30 10:05:07 +02:00 committed by GitHub
parent be0ebb65c1
commit 9e6b5ea3da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2116,7 +2116,7 @@ void UINT64ToSystem(SYSTEMTIME *st, UINT64 sec64)
return; return;
} }
sec64 = SafeTime64(sec64 + 32400000ULL); sec64 = SafeTime64(sec64);
tmp64 = sec64 / (UINT64)1000; tmp64 = sec64 / (UINT64)1000;
millisec = (UINT)(sec64 - tmp64 * (UINT64)1000); millisec = (UINT)(sec64 - tmp64 * (UINT64)1000);
sec = (UINT)tmp64; sec = (UINT)tmp64;
@ -2140,7 +2140,7 @@ UINT64 SystemToUINT64(SYSTEMTIME *st)
sec64 = (UINT64)time * (UINT64)1000; sec64 = (UINT64)time * (UINT64)1000;
sec64 += st->wMilliseconds; sec64 += st->wMilliseconds;
return sec64 - 32400000ULL; return sec64;
} }
// Get local time in UINT64 // Get local time in UINT64