mirror of
https://github.com/openharmony/miscservices_time.git
synced 2026-07-19 20:03:38 -04:00
@@ -12,7 +12,6 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef N_JS_SYSTEMTIME_H
|
||||
#define N_JS_SYSTEMTIME_H
|
||||
|
||||
@@ -61,7 +60,6 @@ struct TimeCallbackPromiseInfo {
|
||||
bool isCallback = false;
|
||||
int errorCode = NO_ERROR;
|
||||
};
|
||||
|
||||
} // MiscServicesNapi
|
||||
} // OHOS
|
||||
}//MiscServicesNapi
|
||||
}//OHOS
|
||||
#endif
|
||||
@@ -141,7 +141,7 @@ napi_value JSSystemTimeSetTime(napi_env env, napi_callback_info info)
|
||||
return result;
|
||||
}
|
||||
|
||||
napi_value JSSystemTimeSetTimeZone(napi_env env, napi_callback_info info)
|
||||
napi_value JSSystemTimeSetTimeZone(napi_env env, napi_callback_info info)
|
||||
{
|
||||
TIME_HILOGI(TIME_MODULE_JS_NAPI, "JSSystemTimeSetTimeZone start");
|
||||
GET_PARAMS(env, info, TWO_PARAMETERS);
|
||||
@@ -244,6 +244,5 @@ extern "C" __attribute__((constructor)) void SystemTimeRegister()
|
||||
{
|
||||
napi_module_register(&system_time_module);
|
||||
}
|
||||
|
||||
} // MiscServicesNapi
|
||||
} // OHOS
|
||||
}//MiscServicesNapi
|
||||
}//OHOS
|
||||
@@ -113,7 +113,7 @@ bool TimeZoneInfo::InitStorage()
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
bool TimeZoneInfo::SetTimezone(std::string timezoneId)
|
||||
{
|
||||
|
||||
@@ -38,7 +38,6 @@ public:
|
||||
static bool IsValidPath(const std::string &rootDir, const std::string &path);
|
||||
static std::string GetPathDir(const std::string &path);
|
||||
};
|
||||
|
||||
} // MiscServices
|
||||
} // OHOS
|
||||
}//MiscServices
|
||||
}//OHOS
|
||||
#endif // TIME_FILE_UTILS_H
|
||||
|
||||
Reference in New Issue
Block a user