mirror of https://github.com/apache/nifi.git
NIFI-3718: Fixed timezone issue in TestAvroReaderWithEmbeddedSchema
This closes #1738
This commit is contained in:
parent
e723a2c5c4
commit
b7c15c360b
|
@ -109,7 +109,7 @@ public class TestAvroReaderWithEmbeddedSchema {
|
|||
assertEquals(new java.sql.Timestamp(timeLong), record.getValue("timestampMicros"));
|
||||
final DateFormat noTimeOfDayDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||
noTimeOfDayDateFormat.setTimeZone(TimeZone.getTimeZone("gmt"));
|
||||
assertEquals(new java.sql.Date(timeLong).toString(), noTimeOfDayDateFormat.format(record.getValue("date")));
|
||||
assertEquals(noTimeOfDayDateFormat.format(new java.sql.Date(timeLong)), noTimeOfDayDateFormat.format(record.getValue("date")));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue