Program: 166929
Project: 166929
Buggy source:
@Test public void testDateTimeProperties(){
  Vertex v=this.sqlgGraph.addVertex(T.label,"String_Node_Str","String_Node_Str","String_Node_Str");
  LocalDateTime ldt=LocalDateTime.now();
  v.property("String_Node_Str",ldt);
  v.property("String_Node_Str",ldt.toLocalDate());
  LocalTime lt=ldt.toLocalTime().truncatedTo(ChronoUnit.SECONDS);
  v.property("String_Node_Str",lt);
  ZonedDateTime zdt=ZonedDateTime.now();
  v.property("String_Node_Str",zdt);
  Period p=Period.ofDays(3);
  v.property("String_Node_Str",p);
  Duration d=Duration.ofHours(12);
  v.property("String_Node_Str",d);
  this.sqlgGraph.tx().commit();
  assertProperty(v,"String_Node_Str",ldt);
  assertProperty(v,"String_Node_Str",ldt.toLocalDate());
  assertProperty(v,"String_Node_Str",lt);
  assertProperty(v,"String_Node_Str",zdt);
  assertProperty(v,"String_Node_Str",p);
  assertProperty(v,"String_Node_Str",d);
}

Fixed version (ground truth):
@Test public void testDateTimeProperties() throws Exception {
  Vertex v=this.sqlgGraph.addVertex(T.label,"String_Node_Str","String_Node_Str","String_Node_Str");
  LocalDateTime ldt=LocalDateTime.now();
  v.property("String_Node_Str",ldt);
  v.property("String_Node_Str",ldt.toLocalDate());
  LocalTime lt=ldt.toLocalTime().truncatedTo(ChronoUnit.SECONDS);
  v.property("String_Node_Str",lt);
  ZonedDateTime zdt=ZonedDateTime.now();
  v.property("String_Node_Str",zdt);
  Period p=Period.ofDays(3);
  v.property("String_Node_Str",p);
  Duration d=Duration.ofHours(12);
  v.property("String_Node_Str",d);
  Vertex vJ=this.sqlgGraph.addVertex(T.label,"String_Node_Str","String_Node_Str","String_Node_Str");
  vJ.addEdge("String_Node_Str",v);
  this.sqlgGraph.tx().commit();
  assertProperty(v,"String_Node_Str",ldt);
  assertProperty(v,"String_Node_Str",ldt.toLocalDate());
  assertProperty(v,"String_Node_Str",lt);
  assertProperty(v,"String_Node_Str",zdt);
  assertProperty(v,"String_Node_Str",p);
  assertProperty(v,"String_Node_Str",d);
  Vertex vJ2=sqlgGraph.vertices(vJ.id()).next();
  Vertex v2=vJ2.edges(Direction.OUT).next().inVertex();
  assertProperty(v2,"String_Node_Str",ldt);
  assertProperty(v2,"String_Node_Str",ldt.toLocalDate());
  assertProperty(v2,"String_Node_Str",lt);
  assertProperty(v2,"String_Node_Str",zdt);
  assertProperty(v2,"String_Node_Str",p);
  assertProperty(v2,"String_Node_Str",d);
  this.sqlgGraph.close();
  try (SqlgGraph sqlgGraph1=SqlgGraph.open(configuration)){
    v2=sqlgGraph1.vertices(v.id()).next();
    assertProperty(sqlgGraph1,v2,"String_Node_Str",ldt);
    assertProperty(sqlgGraph1,v2,"String_Node_Str",ldt.toLocalDate());
    assertProperty(sqlgGraph1,v2,"String_Node_Str",lt);
    assertProperty(sqlgGraph1,v2,"String_Node_Str",zdt);
    assertProperty(sqlgGraph1,v2,"String_Node_Str",p);
    assertProperty(sqlgGraph1,v2,"String_Node_Str",d);
  }
   try (SqlgGraph sqlgGraph1=SqlgGraph.open(configuration)){
    v2=sqlgGraph1.traversal().V().hasLabel("String_Node_Str").next();
    assertProperty(sqlgGraph1,v2,"String_Node_Str",ldt);
    assertProperty(sqlgGraph1,v2,"String_Node_Str",ldt.toLocalDate());
    assertProperty(sqlgGraph1,v2,"String_Node_Str",lt);
    assertProperty(sqlgGraph1,v2,"String_Node_Str",zdt);
    assertProperty(sqlgGraph1,v2,"String_Node_Str",p);
    assertProperty(sqlgGraph1,v2,"String_Node_Str",d);
  }
   try (SqlgGraph sqlgGraph1=SqlgGraph.open(configuration)){
    vJ2=sqlgGraph1.vertices(vJ.id()).next();
    v2=vJ2.edges(Direction.OUT).next().inVertex();
    assertProperty(sqlgGraph1,v2,"String_Node_Str",ldt);
    assertProperty(sqlgGraph1,v2,"String_Node_Str",ldt.toLocalDate());
    assertProperty(sqlgGraph1,v2,"String_Node_Str",lt);
    assertProperty(sqlgGraph1,v2,"String_Node_Str",zdt);
    assertProperty(sqlgGraph1,v2,"String_Node_Str",p);
    assertProperty(sqlgGraph1,v2,"String_Node_Str",d);
  }
 }