From 1dc8eeaeeb425062e9c58233d8145ae045046f94 Mon Sep 17 00:00:00 2001 From: cantor Date: Sat, 23 Oct 2010 20:54:37 +0000 Subject: [PATCH] Add timestamp. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/branches/REL_2@3351 cb58f699-b61c-0410-a6fe-9272a202ed29 --- shibsp/handler/impl/StatusHandler.cpp | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/shibsp/handler/impl/StatusHandler.cpp b/shibsp/handler/impl/StatusHandler.cpp index 9d150b6..2d9931b 100644 --- a/shibsp/handler/impl/StatusHandler.cpp +++ b/shibsp/handler/impl/StatusHandler.cpp @@ -30,6 +30,7 @@ #include "util/CGIParser.h" #include +#include #ifdef HAVE_SYS_UTSNAME_H # include @@ -300,9 +301,12 @@ pair StatusHandler::run(SPRequest& request, bool isHandler) const map props; settings.first->getAll(props); + DateTime now(time(nullptr)); + now.parseDateTime(); + auto_ptr_char timestamp(now.getFormattedString()); request.setContentType("text/xml"); stringstream msg; - msg << ""; + msg << ""; msg << ""; msg << ""; msg << ""; const char* status = ""; s << "