Base: Move currentDateTimeString out of TimeInfo

currentDateTimeString does not have anything in common
with TimeInfo class, move it into Tools.
This commit is contained in:
Ladislav Michl
2024-01-21 17:14:47 +01:00
parent d60e7b9eae
commit 7b70d3fc6f
6 changed files with 14 additions and 12 deletions

View File

@@ -798,7 +798,7 @@ Document::Document(const char* documentName)
#ifdef FC_LOGUPDATECHAIN
Console().Log("+App::Document: %p\n", this);
#endif
std::string CreationDateString = Base::TimeInfo::currentDateTimeString();
std::string CreationDateString = Base::Tools::currentDateTimeString();
std::string Author = App::GetApplication()
.GetParameterGroupByPath("User parameter:BaseApp/Preferences/Document")
->GetASCII("prefAuthor", "");
@@ -1606,7 +1606,7 @@ bool Document::save ()
TipName.setValue(Tip.getValue()->getNameInDocument());
}
std::string LastModifiedDateString = Base::TimeInfo::currentDateTimeString();
std::string LastModifiedDateString = Base::Tools::currentDateTimeString();
LastModifiedDate.setValue(LastModifiedDateString.c_str());
// set author if needed
bool saveAuthor = App::GetApplication().GetParameterGroupByPath