message: fix elasticsearch date
diff: @@ -10,6 +10,8 @@ import org.springframework.stereotype.Component;
  import java.lang.reflect.Field;
  import java.lang.reflect.Method;
  import java.sql.Timestamp;
  +import java.time.ZoneId;
  +import java.util.Date;
  import java.util.List;
  import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
  @@ -18,6 +20,8 @@ import static org.elasticsearch.common.xcontent.XContentFactory.jsonBuilder;
  @Slf4j
  public class ElasticOperationService extends ElasticConfigration {
  + public final static ZoneId zone = ZoneId.systemDefault();
  +
  public void batchInsert(String index, String type, List<?> objects) {
  try{
  BulkRequestBuilder bulkRequest = client.prepareBulk();
  @@ -29,7 +33,7 @@ public class ElasticOperationService extends ElasticConfigration {
  for(String fileName : fileNames){
  Object value = getFieldValueByName(fileName, object);
  if(value instanceof Timestamp){
  - value = ((Timestamp) value).toLocalDateTime();
  + value = Date.from(((Timestamp) value).toLocalDateTime().atZone(zone).toInstant());
  }
  builder.field(fileName, value);
  }
  