We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4744481 commit fa3cf1cCopy full SHA for fa3cf1c
1 file changed
database-commons/src/main/java/io/cdap/plugin/util/DBUtils.java
@@ -66,7 +66,7 @@ public final class DBUtils {
66
// This causes old dates from database such as 0001-01-01 01:00:00 mapped to 0000-12-30
67
// Get the pure gregorian calendar so that all dates are treated as gregorian format.
68
private static Calendar createPureGregorianCalender() {
69
- GregorianCalendar gc = new GregorianCalendar();
+ GregorianCalendar gc = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
70
gc.setGregorianChange(new Date(Long.MIN_VALUE));
71
return gc;
72
}
0 commit comments