SPARK-1278: Fix improper use of SimpleDateFormat