From 98221f00dadda66f040797278573445c24b1581d Mon Sep 17 00:00:00 2001 From: "James C. Owens" Date: Sat, 11 Dec 2021 12:53:50 -0500 Subject: [PATCH] Change call to FormatISO8601DateTime to FormatISO8601DateTimeDashSep in scanforunspent This fixes a regression in scanforunspent caused by the standardization to FormatISO8601DateTime(). Here, as in the backup maintenance regression fix we use a version of the function that uses dashes rather than colons, which filesystems tolerate much better in filenames. --- src/rpc/rawtransaction.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rpc/rawtransaction.cpp b/src/rpc/rawtransaction.cpp index 5dacd88f57..aeed827b75 100644 --- a/src/rpc/rawtransaction.cpp +++ b/src/rpc/rawtransaction.cpp @@ -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", "");