Fix db filename
This commit is contained in:
parent
1720dbba8b
commit
7299ae7c66
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ void Database::newDb()
|
||||||
fs::path destPath = sourcePath.parent_path() / sourcePath.stem();
|
fs::path destPath = sourcePath.parent_path() / sourcePath.stem();
|
||||||
|
|
||||||
auto chronoTime = std::chrono::system_clock::now();
|
auto chronoTime = std::chrono::system_clock::now();
|
||||||
std::string timeString = fmt::format("{0:%F}T{0:%T}", chronoTime);
|
std::string timeString = fmt::format("{0:%FT%H-%M-%S}", chronoTime);
|
||||||
|
|
||||||
destPath += std::string("_") += timeString += ".db";
|
destPath += std::string("_") += timeString += ".db";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue