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 1iwv4N-0006BP-F4 for pgsql-jdbc@arkaria.postgresql.org; Wed, 29 Jan 2020 21:40:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwv4M-0002sO-8w for pgsql-jdbc@arkaria.postgresql.org; Wed, 29 Jan 2020 21:40:18 +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 1iwv4L-0002sF-Up for pgsql-jdbc@lists.postgresql.org; Wed, 29 Jan 2020 21:40:18 +0000 Received: from out-19.smtp.github.com ([192.30.252.202]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwv4J-0007g5-Fx for pgsql-jdbc@lists.postgresql.org; Wed, 29 Jan 2020 21:40:16 +0000 Received: from github-lowworker-39ac79b.ac4-iad.github.net (github-lowworker-39ac79b.ac4-iad.github.net [10.52.18.15]) by smtp.github.com (Postfix) with ESMTP id 468BF520A51 for ; Wed, 29 Jan 2020 13:40:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1580334014; bh=BsrV8wb+vN48wqnLuS2AKxq30evnBvf/nmNaaV81QhI=; h=Date:From:To:Subject:From; b=Z1Wc4hLhQ9cafM9lmyXmn6zsAixV3K01SaAlNLBW4wPqgIIXtuzbtlewT8z6LUPqB dZoRC+hWDfkuWtW+TRIRj1TxkJSxNI/Dy5fJMag7BKiaOBDdt5lQXYeQjW/noJejhx 6XzrIcx8aVapDpgV7dm/rajZnyUUqLNKBDGaj7ng= Date: Wed, 29 Jan 2020 13:40:14 -0800 From: Frane Roje To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] a7480d: Fixing LocalTime rounding (losing precision) (#1570) 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: a7480d20370fefa70c5df30a402b952d1216b63c https://github.com/pgjdbc/pgjdbc/commit/a7480d20370fefa70c5df30a402b952d1216b63c Author: Frane Roje <39126829+franetw@users.noreply.github.com> Date: 2020-01-29 (Wed, 29 Jan 2020) Changed paths: M pgjdbc/src/main/java/org/postgresql/jdbc/TimestampUtils.java A pgjdbc/src/test/java/org/postgresql/jdbc/TimestampUtilsTest.java Log Message: ----------- Fixing LocalTime rounding (losing precision) (#1570) * Fixing LocalTime rounding * added tests for toLocalTime as well