Message-ID: From: "m-van-tilburg (@m-van-tilburg)" To: "pgjdbc/pgjdbc" Date: Thu, 04 Dec 2025 14:22:17 +0000 Subject: [pgjdbc/pgjdbc] PR #3887: fix: make all Calendar instances proleptic Gregorian (#3837) List-Id: X-GitHub-Author-Id: 35914140 X-GitHub-Author-Login: m-van-tilburg X-GitHub-Issue: 3887 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-State: merged X-GitHub-Type: pull_request X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/3887 Content-Type: text/plain; charset=utf-8 Calendar instances created with Calendar.getInstance() or new GregorianCalendar() are by default a hybrid of the Julian and the Gregorian calendar. Java classes like java.sql.Date and SimpleDateFormat also (sometimes) use Calendar instances and therefore might also be affected. This differs from the java.time classes that use the proleptic Gregorian calendar by default. The postgresql server also uses the proleptic Gregorian calendar and therefore it makes sense to make all Calendar instances in the pgjdbc code proleptic Gregorian too. This will fix #3837