Signed-off-by: lovechinamo <wangdongqi2@huawei.com>

Changes to be committed:
This commit is contained in:
lovechinamo
2022-06-02 11:31:14 +08:00
parent d4c6cb9a55
commit b2ebced544
+2 -2
View File
@@ -142,9 +142,9 @@ bool TimeZoneInfo::GetTimezone(std::string &timezoneId)
int64_t TimeZoneInfo::GetCurrentOffsetMs()
{
int offsetHours;
int offsetHours = 0;
GetOffsetById(curTimezoneId_, offsetHours);
return offsetHours * HOUR_TO_MILLISECONDS;
return static_cast<int64_t>(offsetHours) * HOUR_TO_MILLISECONDS;
}
bool TimeZoneInfo::SetOffsetToKernel(int offsetHour)