diff --git a/lib/remote/apilistener-sync.cpp b/lib/remote/apilistener-sync.cpp index ec76a16fb..841835553 100644 --- a/lib/remote/apilistener-sync.cpp +++ b/lib/remote/apilistener-sync.cpp @@ -25,6 +25,7 @@ #include "base/exception.hpp" #include #include +#include using namespace icinga; @@ -99,7 +100,7 @@ bool ApiListener::UpdateConfigDir(const Dictionary::Ptr& oldConfig, const Dictio String tsPath = configDir + "/.timestamp"; if (!Utility::PathExists(tsPath)) { std::ofstream fp(tsPath.CStr(), std::ofstream::out | std::ostream::trunc); - fp << Utility::GetTime(); + fp << std::fixed << Utility::GetTime(); fp.close(); }