mirror of
https://github.com/sockspls/badfish
synced 2025-04-29 16:23:09 +00:00
Fix single digit day in engine_name()
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
54071312f3
commit
ea7bebb604
1 changed files with 3 additions and 1 deletions
|
@ -78,8 +78,10 @@ const std::string engine_name() {
|
|||
size_t mon = 1 + months.find(date.substr(0, 3)) / 4;
|
||||
|
||||
std::stringstream s;
|
||||
std::string day = (date[4] == ' ' ? date.substr(5, 1) : date.substr(4, 2));
|
||||
|
||||
s << "Glaurung clone " << date.substr(date.length() - 2) << std::setfill('0')
|
||||
<< std::setw(2) << mon << date.substr(4, 2);
|
||||
<< std::setw(2) << mon << std::setw(2) << day;
|
||||
|
||||
return s.str();
|
||||
} else
|
||||
|
|
Loading…
Add table
Reference in a new issue