From e5a2c9794c34261af5ddcb8751913186d9802791 Mon Sep 17 00:00:00 2001 From: Sergey Kazenyuk Date: Tue, 5 Nov 2013 00:22:41 +0400 Subject: [PATCH] Make time facet non-constant --- src/rpcdump.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rpcdump.cpp b/src/rpcdump.cpp index a5f7a542..f24e6b8a 100644 --- a/src/rpcdump.cpp +++ b/src/rpcdump.cpp @@ -26,7 +26,7 @@ std::string static EncodeDumpTime(int64 nTime) { } int64 static DecodeDumpTime(const std::string &str) { - static const boost::posix_time::time_input_facet facet("%Y-%m-%dT%H:%M:%SZ"); + static boost::posix_time::time_input_facet facet("%Y-%m-%dT%H:%M:%SZ"); static const boost::posix_time::ptime epoch = boost::posix_time::from_time_t(0); const std::locale loc(std::locale::classic(), &facet); std::istringstream iss(str);