From da3a6a5954ebd38e947041bcde86ae8512fd62d7 Mon Sep 17 00:00:00 2001 From: Mrs-X Date: Thu, 10 May 2018 22:15:07 +0200 Subject: [PATCH] [Build] Remove unnecessary BOOST dependency --- src/wallet.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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())); }