From f07fb9726403b56cf5e918ea01319eae456fb7d4 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Mon, 9 Feb 2015 15:22:55 +0100 Subject: [PATCH] Fix timestamp format for the .timestamp file fixes #8313 --- lib/remote/apilistener-sync.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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(); }