File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,13 @@ using namespace std;
23
23
void EnsureWalletIsUnlocked ();
24
24
25
25
std::string static EncodeDumpTime (int64_t nTime) {
26
- return DateTimeStrFormat (" %Y-%m-%" PRId64 " T %H:%M:%SZ" , nTime);
26
+ return DateTimeStrFormat (" %Y-%m-%dT %H:%M:%SZ" , nTime);
27
27
}
28
28
29
29
int64_t static DecodeDumpTime (const std::string &str) {
30
- static boost::posix_time::time_input_facet facet (" %Y-%m-%dT%H:%M:%SZ" );
31
30
static const boost::posix_time::ptime epoch = boost::posix_time::from_time_t (0 );
32
- const std::locale loc (std::locale::classic (), &facet);
31
+ static const std::locale loc (std::locale::classic (),
32
+ new boost::posix_time::time_input_facet (" %Y-%m-%dT%H:%M:%SZ" ));
33
33
std::istringstream iss (str);
34
34
iss.imbue (loc);
35
35
boost::posix_time::ptime ptime (boost::date_time::not_a_date_time);
You can’t perform that action at this time.
0 commit comments