Clean up unused params.
Fall back to strftime.

std::put_time is not available in libstdc++ 4.8.