class ZonedDateTimeConverter implements AtlasConverter<ZonedDateTime> {

    @AtlasConversionInfo(sourceType = FieldType.DATE_TIME_TZ, targetType = FieldType.DATE_TIME,
            concerns = AtlasConversionConcern.TIMEZONE)
    public Date toDate(ZonedDateTime value) {
        return value != null ? Date.from(value.toInstant()) : null;
    }

}