20210927LTS02

Signed-off-by: guduhanyan <xuyanjun27@163.com>
This commit is contained in:
guduhanyan
2021-09-27 17:24:43 +08:00
parent c1285d4baa
commit 8a5ebaed80
4 changed files with 8 additions and 12 deletions
@@ -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
+1 -1
View File
@@ -113,7 +113,7 @@ bool TimeZoneInfo::InitStorage()
}
}
return true;
}
}
bool TimeZoneInfo::SetTimezone(std::string timezoneId)
{
+2 -3
View File
@@ -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