fix unit test and another workaround for intel compilers

This commit is contained in:
Axel Kohlmeyer
2025-01-12 19:42:03 -05:00
parent c8a46fe4ce
commit 4519489f8b
2 changed files with 2 additions and 2 deletions

View File

@ -1804,7 +1804,7 @@ std::string utils::current_date()
{
time_t tv = time(nullptr);
std::tm today = fmt::localtime(tv);
return fmt::format("{:%Y-%m-%d}", today);
return fmt::format("{:04d}-{:02d}-{:02d}", 1900 + today.tm_year, 1 + today.tm_mon, today.tm_mday);
}
/* ----------------------------------------------------------------------