Merge pull request #10169 from leoetlino/fmt-localtime Use fmt::localtime instead of thread-unsafe std::localtime