jtstorck commented on a change in pull request #3625: NIFI-6479: Set default
timezone to avoid conflicts with the java.sql.…
URL: https://github.com/apache/nifi/pull/3625#discussion_r310299297
##########
File path:
nifi-nar-bundles/nifi-extension-utils/nifi-database-utils/src/test/java/org/apache/nifi/util/db/TestJdbcCommon.java
##########
@@ -102,6 +102,9 @@ public static void setup() throws ClassNotFoundException,
SQLException {
try (final Statement stmt = con.createStatement()) {
stmt.executeUpdate(createTable);
}
+
+ // Set default timezone to avoid conflicts with the java.sql.Date
library
+ TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
Review comment:
This may resolve the issue, but it's typically not a good idea to change the
timezone in this manner. I have submitted another PR (#3630) which does not
alter the default timezone, and shouldn't interfere with other tests if run in
parallel.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services