Thread safety of SimpleDateFormat avoided.

Removed static reference to SimpleDateFormat due to thread safety
issues. Thanks to @imrandy85 for the report.