Both of these methods do the same.
SimpleDateFormat.setTimeZone(TimeZone zone)
essentially a method inherited from java.text.DateFormat. When
DateFormat.setTimeZone(TimeZone zone)
he will run
getCalendar().setTimeZone(TimeZone zone)
which is the same as
Calendar.setTimeZone(TimeZone zone)
They both call the same method that sets the time zone.
source share