mu-utils: use const char* from for time_to_string

To avoid lifetime problems with some(?) compilers.
This commit is contained in:
Dirk-Jan C. Binnema
2022-12-10 19:22:00 +02:00
parent 51d555f947
commit 27ffaba817
2 changed files with 6 additions and 8 deletions

View File

@ -153,7 +153,7 @@ std::string date_to_time_t_string(int64_t t);
* @return a string representation of the time in UTF8-format, or empty in case
* of error.
*/
std::string time_to_string(const std::string& frm, time_t t, bool utc = false) G_GNUC_CONST;
std::string time_to_string(const char *frm, time_t t, bool utc = false) G_GNUC_CONST;
/**