#include <rpk_manifest_handlers/dependencies_handler.h>
#include <rpk_manifest_handlers/package_handler.h>
-#include <chrono>
#include <string>
#include <common/installer_context.h>
#include <common/step/step.h>
#include "common/utils/paths.h"
#include "common/utils/pkgmgr_query.h"
+#include "common/utils/time_util.h"
namespace bf = boost::filesystem;
bool StepParseRpkManifest::FillInstallationInfo(manifest_x* manifest) {
manifest->root_path = strdup(
(context_->root_application_path.get() / manifest->package).c_str());
- manifest->installed_time =
- strdup(std::to_string(std::chrono::system_clock::to_time_t(
- std::chrono::system_clock::now())).c_str());
+ manifest->installed_time = strdup(common_installer::GetCurrentTime().c_str());
return true;
}