From 19b2bf713aee71de42b75a1e1b8276a0e3a90430 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Fri, 21 Jul 2023 20:38:28 +0800 Subject: [PATCH] fixed a bug in FromDateTime of Windows platform --- src/Win/DateTime.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Win/DateTime.cpp b/src/Win/DateTime.cpp index 0249d73..b57369e 100644 --- a/src/Win/DateTime.cpp +++ b/src/Win/DateTime.cpp @@ -137,8 +137,7 @@ namespace hgl } double FromDateTime(const int year,const int month,const int day, - const int hour,const int minute,const int second,const int micro_second, - const int gmt_off) + const int hour,const int minute,const int second,const int micro_second) { SYSTEMTIME st; @@ -155,7 +154,6 @@ namespace hgl uint64 result; SystemTimeToMicroTime(&result, &st); - result -= gmt_off; return(double(result) / HGL_MICRO_SEC_PER_SEC); } }//namespace hgl