From ba2a54f3d22dacd69d8202fc9a7d32a2b40b1d1e Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 18 Apr 2007 23:50:25 +0000 Subject: Initial round of changes to use boost_date_time --- trace.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'trace.cc') diff --git a/trace.cc b/trace.cc index e82b5a5e..45f33c77 100644 --- a/trace.cc +++ b/trace.cc @@ -8,8 +8,8 @@ bool trace_mode; void trace(const std::string& cat, const std::string& str) { char buf[32]; - std::strftime(buf, 31, "%H:%M:%S", datetime_t::now.localtime()); - std::cerr << buf << " " << cat << ": " << str << std::endl; + std::cerr << now.to_short_string() << " " << cat << ": " << str + << std::endl; } void trace_push(const std::string& cat, const std::string& str, -- cgit v1.2.3