Simplify file name
This commit is contained in:
parent
d5d309ac10
commit
9f114660e1
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ void Database::newDb()
|
|||
|
||||
fs::path sourcePath = dbname_;
|
||||
fs::path destPath = sourcePath.parent_path() / sourcePath.stem();
|
||||
destPath += std::string("_") += boost::posix_time::to_iso_extended_string(boost::posix_time::second_clock::local_time()) += ".db";
|
||||
destPath += std::string("_") += boost::posix_time::to_iso_string(boost::posix_time::second_clock::local_time()) += ".db";
|
||||
|
||||
fs::copy_file(sourcePath, destPath, fs::copy_options::overwrite_existing);
|
||||
|
||||
|
|
Loading…
Reference in a new issue