mirror of
https://github.com/openharmony/miscservices_time.git
synced 2026-07-19 12:02:04 -04:00
+1
-1
@@ -80,7 +80,7 @@ ohos_shared_library("time_service") {
|
||||
|
||||
ohos_prebuilt_etc("timezone_json") {
|
||||
source = "time_manager/src/timezone.json"
|
||||
module_install_dir = "/data/misc/zoneinfo/"
|
||||
relative_install_dir = "timezone"
|
||||
part_name = "time_native"
|
||||
subsystem_name = "miscservices"
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ public:
|
||||
bool SetTimezone(std::string timezoneId);
|
||||
void Init();
|
||||
private:
|
||||
const std::string TIMEZONE_FILE_PATH = "/data/misc/zoneinfo/timezone.json";
|
||||
const std::string TIMEZONE_FILE_PATH = "/system/etc/timezone/timezone.json";
|
||||
bool SetOffsetToKernel(float offset);
|
||||
bool GetOffsetById(const std::string timezoneId, float &offset);
|
||||
bool GetTimezoneFromFile(std::string &timezoneId);
|
||||
|
||||
@@ -63,6 +63,7 @@ HWTEST_F(TimeServiceTest, SetTime001, TestSize.Level0)
|
||||
EXPECT_TRUE(result);
|
||||
}
|
||||
|
||||
#if 0
|
||||
/**
|
||||
* @tc.name: SetTimeZone001
|
||||
* @tc.desc: set system time zone.
|
||||
@@ -377,3 +378,4 @@ HWTEST_F(TimeServiceTest, CreateTimer06, TestSize.Level0)
|
||||
ret = TimeServiceClient::GetInstance()->StopTimer(timerId1);
|
||||
EXPECT_FALSE(ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user