Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hcskG-0004sT-9s for pgsql-jdbc@arkaria.postgresql.org; Mon, 17 Jun 2019 14:36:28 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hcskF-0000vX-55 for pgsql-jdbc@arkaria.postgresql.org; Mon, 17 Jun 2019 14:36:27 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hcskE-0000vL-Pi for pgsql-jdbc@lists.postgresql.org; Mon, 17 Jun 2019 14:36:26 +0000 Received: from out-24.smtp.github.com ([192.30.252.207]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hcskB-00045C-Im for pgsql-jdbc@lists.postgresql.org; Mon, 17 Jun 2019 14:36:25 +0000 Date: Mon, 17 Jun 2019 07:36:22 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1560782182; bh=g/RV5MqLrX4/7IGuqHwTNM0UioOvN3DBu+f63U2Pnvk=; h=Date:From:To:Subject:From; b=IXyY8D4AztnW/2xGcOvmuXy4jkLQb4qu9CSZR72ghW1xefwrCswVYDS3pFIpHFnTd Uwsr6C0a71BHzUlZMb8PngMI9/cz3GzDrXdvyF3pkOvRt6DPzgXy1f/wrx0QnlxHR7 VxQHlLnZVWAAMBlmbHHcN+Wj6NdU8xh9BOK4a+eA= From: Dave Cramer To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] c9a707: fix #1499 rounding for timestamps truncated to dat... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: c9a70782b3818609ca29e19d1a4aa0af89d96382 https://github.com/pgjdbc/pgjdbc/commit/c9a70782b3818609ca29e19d1a4aa0af89d96382 Author: Dave Cramer Date: 2019-06-17 (Mon, 17 Jun 2019) Changed paths: M pgjdbc/src/main/java/org/postgresql/jdbc/TimestampUtils.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/TimestampTest.java Log Message: ----------- fix #1499 rounding for timestamps truncated to dates before 1970 (#1502) * fix #1499 rounding for timestamps truncated to dates before 1970 * Implement floorDiv until we drop support for Java 1.7