#include <common/privileges.h>
#include <common/step/step.h>
#include <common/utils/glist_range.h>
+#include <common/utils/time_util.h>
#include <manifest_parser/utils/version_number.h>
#include <wgt_manifest_handlers/account_handler.h>
#include <wgt_manifest_handlers/addon_handler.h>
#include <string.h>
-#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <memory>
namespace configuration {
namespace app_keys = wgt::application_widget_keys;
-namespace sc = std::chrono;
StepParse::StepParse(common_installer::InstallerContext* context,
ConfigLocation config_location,
bool StepParse::FillInstallationInfo(manifest_x* manifest) {
manifest->root_path = strdup(
(context_->root_application_path.get() / manifest->package).c_str());
- manifest->installed_time =
- strdup(std::to_string(sc::system_clock::to_time_t(
- sc::system_clock::now())).c_str());
+ manifest->installed_time = strdup(common_installer::GetCurrentTime().c_str());
return true;
}