fixed a bug in FromDateTime of Windows platform

This commit is contained in:
HuYingzhuo(hugo/hyzboy) 2023-07-21 20:38:28 +08:00
parent dc22dc4d85
commit 19b2bf713a

View File

@ -137,8 +137,7 @@ namespace hgl
} }
double FromDateTime(const int year,const int month,const int day, 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 hour,const int minute,const int second,const int micro_second)
const int gmt_off)
{ {
SYSTEMTIME st; SYSTEMTIME st;
@ -155,7 +154,6 @@ namespace hgl
uint64 result; uint64 result;
SystemTimeToMicroTime(&result, &st); SystemTimeToMicroTime(&result, &st);
result -= gmt_off;
return(double(result) / HGL_MICRO_SEC_PER_SEC); return(double(result) / HGL_MICRO_SEC_PER_SEC);
} }
}//namespace hgl }//namespace hgl