Replace std::put_time since nobody supports it.