Fixed the warnings for locale in SimpleDateFormat and String.format.