mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-18 19:10:11 +00:00
Merge pull request #3198 from nvmd/compile_on_mavericks
Make time facet non-constant
This commit is contained in:
commit
63bea1d2e6
@ -26,7 +26,7 @@ std::string static EncodeDumpTime(int64 nTime) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int64 static DecodeDumpTime(const std::string &str) {
|
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);
|
static const boost::posix_time::ptime epoch = boost::posix_time::from_time_t(0);
|
||||||
const std::locale loc(std::locale::classic(), &facet);
|
const std::locale loc(std::locale::classic(), &facet);
|
||||||
std::istringstream iss(str);
|
std::istringstream iss(str);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user