diff options
author | mcorino <mcorino@users.noreply.github.com> | 2011-12-08 09:07:48 +0000 |
---|---|---|
committer | mcorino <mcorino@users.noreply.github.com> | 2011-12-08 09:07:48 +0000 |
commit | a67fe0bc8c98af0f2f0b468857c51f21f47d8e72 (patch) | |
tree | e99132cffef6ff51e76a05dd9ef5fa29da7d2f6a /TAO/utils/logWalker/Invocation.cpp | |
parent | 094ebad8a4a3fac5422728616e3181cf3d0928f2 (diff) | |
download | ATCD-RemedyWorkSAStart.tar.gz |
restart work sa branchRemedyWorkSAStart
Diffstat (limited to 'TAO/utils/logWalker/Invocation.cpp')
-rw-r--r-- | TAO/utils/logWalker/Invocation.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/TAO/utils/logWalker/Invocation.cpp b/TAO/utils/logWalker/Invocation.cpp index fd357bf9d0e..7e8dc980154 100644 --- a/TAO/utils/logWalker/Invocation.cpp +++ b/TAO/utils/logWalker/Invocation.cpp @@ -21,6 +21,8 @@ static const char *size_leadin = 0; static size_t leadin_len = 0; static const size_t giop_header_len = 12; +static const int date_format = 2; + // GIOP 1.2 header: 12 bytes // Magic: 4 // ver: 2 @@ -138,6 +140,12 @@ Invocation::GIOP_Buffer::GIOP_Buffer(const char *text, ACE_OS::strncpy(timebuf, text, (time_tok - text)); timebuf[time_tok - text] = 0; char *hms = ACE_OS::strchr (timebuf,' '); + if (Session::date_format() == 2) // MMM DD hh:mm:ss.msec YYYY + { + if (hms != 0) + hms = ACE_OS::strchr (hms+1,' '); + } + if (hms != 0) { int hr, min, sec, msec; |