package jp.gr.java_conf.hhayakawa_jp.beehive_client;

import java.io.IOException;
import java.time.ZonedDateTime;
import java.time.format.DateTimeFormatter;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonSerializer;
import com.fasterxml.jackson.databind.SerializerProvider;

class ZonedDateTimeSerializer extends JsonSerializer<ZonedDateTime> {

    @Override
    public void serialize(ZonedDateTime datetime, JsonGenerator generator,
            SerializerProvider serializerProvider)
            throws IOException, JsonProcessingException {
        generator.writeString(
                DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(datetime));
    }

}

Change to use ZonedDateTime object directory for datetime in message payload .
Change to use ZonedDateTime object directory for datetime in message payload .
