From 29b8b9eb54940c84d231f1dcb8090481f3d4a1fa Mon Sep 17 00:00:00 2001 From: Shamser Ahmed Date: Mon, 22 Apr 2024 11:07:45 +0100 Subject: [PATCH] HPCC-31616 Only standard timestamp format (remove use of timestamp with space separator) Signed-off-by: Shamser Ahmed --- esp/services/ws_fs/ws_fsService.cpp | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/esp/services/ws_fs/ws_fsService.cpp b/esp/services/ws_fs/ws_fsService.cpp index 4a83c2cc65c..4a4fe36c8cc 100644 --- a/esp/services/ws_fs/ws_fsService.cpp +++ b/esp/services/ws_fs/ws_fsService.cpp @@ -331,19 +331,13 @@ static void DeepAssign(IEspContext &context, IConstDFUWorkUnit *src, IEspDFUWork dest.setStateMessage(statemsg.str()); CDateTime startAt; - CDateTime stoppAt; + CDateTime stopAt; prog->getTimeStarted(startAt); - prog->getTimeStopped(stoppAt); + prog->getTimeStopped(stopAt); + StringBuffer tmpstr; - startAt.getDateString(tmpstr); - tmpstr.append(" "); - startAt.getTimeString(tmpstr); - dest.setTimeStarted(tmpstr.str()); - tmpstr.clear(); - stoppAt.getDateString(tmpstr); - tmpstr.append(" "); - stoppAt.getTimeString(tmpstr); - dest.setTimeStopped(tmpstr.str()); + dest.setTimeStarted(startAt.getString(tmpstr).str()); + dest.setTimeStopped(stopAt.getString(tmpstr.clear()).str()); StringBuffer prgmsg; prog->formatProgressMessage(prgmsg);