Make time facet non-constant

This commit is contained in:
Sergey Kazenyuk 2013-11-05 00:22:41 +04:00
parent c4f2a002ca
commit e5a2c9794c

View file

@ -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);