diff --git a/src/wallet.cpp b/src/wallet.cpp index 898887e1cc9e9..1f09ea00c0274 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -5051,11 +5051,10 @@ void CWallet::ReconsiderZerocoins(std::list& listMintsRestored, s string CWallet::GetUniqueWalletBackupName(bool fzpivAuto) const { - posix_time::ptime timeLocal = posix_time::second_clock::local_time(); stringstream ssDateTime; + std::string strWalletBackupName = strprintf("%s", DateTimeStrFormat(".%Y-%m-%d-%H-%M", GetTime())); + ssDateTime << strWalletBackupName; - - ssDateTime << gregorian::to_iso_extended_string(timeLocal.date()) << "-" << timeLocal.time_of_day(); return strprintf("wallet%s.dat%s", fzpivAuto ? "-autozpivbackup" : "", DateTimeStrFormat(".%Y-%m-%d-%H-%M", GetTime())); }