Since the timezone is set to UTC on the next line, we could avoid adding a new dependency and add the proper formatting ourselves. 'Z' in ISO8601 stands for zero offset / UTC, and so it can be appended as a literal character:

    val isoDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm'Z'");