I am using Java 8 This is what my ZonedDateTime looks like
Java 8
ZonedDateTime
2013-07-10T02:52:49+12:00
I get this value as <
It looks like you need to convert to the desired time zone (UTC) before sending it to the formatter.
z1.withZoneSameInstant( ZoneId.of("UTC") ) .format( DateTimeFormatter.ISO_OFFSET_DATE_TIME )
should give you something like 2018-08-28T17:41:38.213Z
2018-08-28T17:41:38.213Z