aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2013-11-04 16:50:55 -0800
committerGavin Andresen <gavinandresen@gmail.com>2013-11-04 16:50:55 -0800
commit63bea1d2e644e930900fc7225359c0772eff4aa4 (patch)
treef401f18eaee28e44b2ddca73dcbe64912e08f5ef /src
parente304dbd3f8c6f922188fd0e9495f79bb16fc8a22 (diff)
parente5a2c9794c34261af5ddcb8751913186d9802791 (diff)
Merge pull request #3198 from nvmd/compile_on_mavericks
Make time facet non-constant
Diffstat (limited to 'src')
-rw-r--r--src/rpcdump.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpcdump.cpp b/src/rpcdump.cpp
index a5f7a542de..f24e6b8a9c 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);