From be9ec894525c7a68a0e8f9b30d7b080c81a6a900 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Fri, 21 Jul 2023 20:38:51 +0800 Subject: [PATCH] removed gmt_off in FromDateTime --- inc/hgl/type/DateTime.h | 2 +- src/Time/DateTime.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/inc/hgl/type/DateTime.h b/inc/hgl/type/DateTime.h index 50034d0..80b014c 100644 --- a/inc/hgl/type/DateTime.h +++ b/inc/hgl/type/DateTime.h @@ -168,7 +168,7 @@ namespace hgl * @return 转换出的值 */ double FromDateTime(const int year,const int month,const int day, - const int hour,const int minute=0,const int second=0,const int micro_second=0,const int gmt_off=0); + const int hour,const int minute=0,const int second=0,const int micro_second=0); /** * 根据Date/Time转换出以秒为单位的时间值 diff --git a/src/Time/DateTime.cpp b/src/Time/DateTime.cpp index f278240..c0a75bc 100644 --- a/src/Time/DateTime.cpp +++ b/src/Time/DateTime.cpp @@ -342,7 +342,6 @@ namespace hgl double FromDateTime(const Date &d,const Time &t) { return FromDateTime(d.GetYear(),d.GetMonth(),d.GetDay(), - t.GetHour(),t.GetMinute(),t.GetSecond(),t.GetMicroSecond(), - t.GetGMT()); + t.GetHour(),t.GetMinute(),t.GetSecond(),t.GetMicroSecond()); } }//namespace hgl