NIFI-3718: Fixed timezone issue in TestAvroReaderWithEmbeddedSchema

This closes #1738
This commit is contained in:
Matt Burgess 2017-05-03 10:10:02 -04:00
parent e723a2c5c4
commit b7c15c360b
1 changed files with 1 additions and 1 deletions

View File

@ -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")));
}
}