Skip to content

Commit

Permalink
Update src/libs/antares/utils/utils.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
flomnes authored Jul 9, 2024
1 parent fa17f6e commit e7e7270
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/libs/antares/utils/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,7 @@ std::string FormattedTime(const std::string& format)
char time_buffer[256];
std::strftime(time_buffer, sizeof(time_buffer), format.c_str(), &local_time);

std::string currentTime = time_buffer;

return currentTime;
return std::string(time_buffer);
}

std::vector<std::pair<std::string, std::string>> splitStringIntoPairs(const std::string& s,
Expand Down

0 comments on commit e7e7270

Please sign in to comment.