Skip to content
Snippets Groups Projects
Commit cda02dc7 authored by chengtbf's avatar chengtbf Committed by Will Zhang
Browse files

fix date time display of --version (#918)

parent 0b756238
No related branches found
No related tags found
No related merge requests found
......@@ -27,8 +27,10 @@ std::string BuildVersionString() {
{"Jul", "07"}, {"Aug", "08"}, {"Sep", "09"}, {"Oct", "10"}, {"Nov", "11"}, {"Dec", "12"},
};
static const std::string date_str(__DATE__);
return OF_VERSION " (" + date_str.substr(7) + month_word2num.at(date_str.substr(0, 3))
+ date_str.substr(4, 2) + "." + __TIME__ + ")";
std::string day = date_str.substr(4, 2);
StringReplace(&day, ' ', '0');
return OF_VERSION " (" + date_str.substr(7) + month_word2num.at(date_str.substr(0, 3)) + day + "."
+ __TIME__ + ")";
}
std::string GetAmdCtrlKey(int64_t machine_id) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment