Message-ID: From: "AFulgens (@AFulgens)" To: "pgjdbc/pgjdbc" Date: Fri, 06 Feb 2026 10:21:46 +0000 Subject: Re: [pgjdbc/pgjdbc] issue #3930: Revert semantic calendar changes introduced with #3837 In-Reply-To: References: List-Id: X-GitHub-Author-Login: AFulgens X-GitHub-Comment-Id: 3859445621 X-GitHub-Comment-Type: issue_comment X-GitHub-Edited-At: 2026-02-06T10:22:07Z X-GitHub-Issue: 3930 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/issues/3930#issuecomment-3859445621 Content-Type: text/plain; charset=utf-8 Example the other way around: Java code: ``` String select = "SELECT * FROM public.testtable"; statement = connection.prepareStatement(select); resultSet = statement.executeQuery(); while (resultSet.next()) { String str = resultSet.getString(2); java.sql.Date date = resultSet.getDate(2); System.out.println("As String: " + str); System.out.println("As sql.Date: " + date); System.out.println("Epoch within sql.Date: " + date.getTime()); } ``` **psql execution:** ``` postgres=# insert into public.testtable(this_is_a_date) values ('1000-01-01'); INSERT 0 1 postgres=# select * from public.testtable; id | this_is_a_date ----+---------------- 50 | 1000-01-01 (1 row) ``` **Result with driver 42.7.8:** ``` As String: 1000-01-01 As sql.Date: 1000-01-01 Epoch within sql.Date: -30609795600000 ``` **Result with driver 42.7.9:** ``` As String: 1000-01-01 As sql.Date: 0999-12-27 Epoch within sql.Date: -30610227600000 ```