# HG changeset patch # User Sebastien Jodogne # Date 1449133336 -3600 # Node ID 579bf74f7da1e8286f059a9b1e476570be1ea9eb # Parent ed7dd49aa7778396d625af5ac0fc65d4064df4cd output creation time for mainline builds diff -r ed7dd49aa777 -r 579bf74f7da1 OrthancServer/main.cpp --- a/OrthancServer/main.cpp Wed Dec 02 16:05:31 2015 +0100 +++ b/OrthancServer/main.cpp Thu Dec 03 10:02:16 2015 +0100 @@ -1099,7 +1099,25 @@ * Launch Orthanc. **/ - LOG(WARNING) << "Orthanc version: " << ORTHANC_VERSION; + { + std::string version(ORTHANC_VERSION); + + if (std::string(ORTHANC_VERSION) == "mainline") + { + try + { + boost::filesystem::path exe(Toolbox::GetPathToExecutable()); + std::time_t creation = boost::filesystem::last_write_time(exe); + boost::posix_time::ptime converted(boost::posix_time::from_time_t(creation)); + version += " (" + boost::posix_time::to_iso_string(converted) + ")"; + } + catch (...) + { + } + } + + LOG(WARNING) << "Orthanc version: " << version; + } int status = 0; try