mirror of
https://github.com/openharmony/miscservices_time.git
synced 2026-07-19 20:03:38 -04:00
Signed-off-by: lovechinamo <wangdongqi2@huawei.com>
Changes to be committed:
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user