Skip to content

Commit fa3cf1c

Browse files
committed
Create calendar with UTC as timezone.
1 parent 4744481 commit fa3cf1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • database-commons/src/main/java/io/cdap/plugin/util

database-commons/src/main/java/io/cdap/plugin/util/DBUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public final class DBUtils {
6666
// This causes old dates from database such as 0001-01-01 01:00:00 mapped to 0000-12-30
6767
// Get the pure gregorian calendar so that all dates are treated as gregorian format.
6868
private static Calendar createPureGregorianCalender() {
69-
GregorianCalendar gc = new GregorianCalendar();
69+
GregorianCalendar gc = new GregorianCalendar(TimeZone.getTimeZone("UTC"));
7070
gc.setGregorianChange(new Date(Long.MIN_VALUE));
7171
return gc;
7272
}

0 commit comments

Comments
 (0)