package com.structurizr.io.json;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;

import java.text.SimpleDateFormat;

class AbstractJsonWriter {

    private static final String ISO_DATE_TIME_FORMAT = "yyyy-MM-dd'T'HH:mm:ss'Z'";

    ObjectMapper createObjectMapper(boolean indentOutput) {
        ObjectMapper objectMapper = new ObjectMapper();

        if (indentOutput) {
            objectMapper.enable(SerializationFeature.INDENT_OUTPUT);
        }

        objectMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
        objectMapper.setSerializationInclusion(JsonInclude.Include.NON_EMPTY);

        objectMapper.setDateFormat(new SimpleDateFormat(AbstractJsonWriter.ISO_DATE_TIME_FORMAT));

        return objectMapper;
    }

}
@@ -227,16 +227,43 @@
 eFormat;
+%0Aimport java.util.TimeZone;
 %0A%0Aclass 
@@ -759,32 +759,22 @@
         
-objectMapper.set
+Simple
 DateForm
@@ -775,17 +775,23 @@
 teFormat
-(
+ sdf = 
 new Simp
@@ -843,16 +843,110 @@
 _FORMAT)
+;%0A        sdf.setTimeZone(TimeZone.getTimeZone(%22UTC%22));%0A        objectMapper.setDateFormat(sdf
 );%0A%0A    

Dates need to be formatted as UTC.