Fix thread safety issue with simpledateformat