Skip to content

Commit

Permalink
Merge pull request #2413 from jamescowens/fix_scanforunspent
Browse files Browse the repository at this point in the history
rpc: Change call to FormatISO8601DateTime to FormatISO8601DateTimeDashSep in scanforunspent
  • Loading branch information
jamescowens authored Dec 11, 2021
2 parents 3d6d28c + 98221f0 commit 2214a0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rpc/rawtransaction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1407,7 +1407,8 @@ UniValue scanforunspent(const UniValue& params, bool fHelp)
// We will place this in wallet backups as a safer location then in main data directory
fs::path exportpath;

std::string exportfile = params[0].get_str() + "-" + std::string(FormatISO8601DateTime(GetTime())) + "." + params[4].get_str();
std::string exportfile = params[0].get_str() + "-" + std::string(FormatISO8601DateTimeDashSep(GetTime()))
+ "." + params[4].get_str();

std::string backupdir = gArgs.GetArg("-backupdir", "");

Expand Down

0 comments on commit 2214a0b

Please sign in to comment.