you can use
TimeZone fixedUtcPlus1 = new SimpleTimeZone(TimeUnit.HOURS.toMillis(1), "GMT+1"); format.setTimeZone(fixedUtcPlus1);
Or simply:
TimeZone zone = TimeZone.getTimeZone("GMT+1"); format.setTimeZone(zone);
(Apologies for the repeated changes around +1 and -1 ... bad diagnosis on my part. "GMT + 1" is fine, but its Etc equivalent - "Etc / GMT-1" is very confusing.)
source share