From: cantor Date: Sat, 23 Oct 2010 20:54:37 +0000 (+0000) Subject: Add timestamp. X-Git-Tag: 2.4.2~50 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fsp.git;a=commitdiff_plain;h=1dc8eeaeeb425062e9c58233d8145ae045046f94 Add timestamp. git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/branches/REL_2@3351 cb58f699-b61c-0410-a6fe-9272a202ed29 --- 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 << "