diff --git a/a8/sysutils.cc b/a8/sysutils.cc index e713c92..068fa27 100644 --- a/a8/sysutils.cc +++ b/a8/sysutils.cc @@ -187,10 +187,11 @@ namespace a8 time_t GetDateTimeSeconds(const char* datetime_str) { + int g_time_zone = 8; struct tm stm; strptime(datetime_str, "%Y-%m-%d %H:%M:%S", &stm); long t = mktime(&stm); - return t; + return t + g_time_zone*3600; } long long MakeInt64(int low32, int high32)