[libpostgresql-jdbc-java] 09/24: Fixed timezone test as per Tom Lane's suggestion. … Now using Europe/Helsinki as the exemplar.

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Jan 9 21:17:39 UTC 2017


This is an automated email from the git hooks/post-receive script.

ebourg-guest pushed a commit to tag REL9_3_1103
in repository libpostgresql-jdbc-java.

commit 5e1880fe232a950ae31dc60834ffc99a1339ab12
Author: Dave Cramer <dave.cramer at credativ.ca>
Date:   Sat Oct 25 08:45:30 2014 +0200

    Fixed timezone test as per Tom Lane's suggestion. …
    Now using Europe/Helsinki as the exemplar.
---
 org/postgresql/test/jdbc2/TimezoneTest.java | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/org/postgresql/test/jdbc2/TimezoneTest.java b/org/postgresql/test/jdbc2/TimezoneTest.java
index ec58cf2..22d65ab 100644
--- a/org/postgresql/test/jdbc2/TimezoneTest.java
+++ b/org/postgresql/test/jdbc2/TimezoneTest.java
@@ -69,7 +69,7 @@ public class TimezoneTest extends TestCase
     protected void setUp() throws Exception
     {
         // We must change the default TZ before establishing the connection.
-        TimeZone.setDefault(TimeZone.getTimeZone("GMT+01")); // Arbitary timezone that doesn't match our test timezones
+        TimeZone.setDefault(TimeZone.getTimeZone("GMT+01")); // Arbitrary timezone that doesn't match our test timezones
 
         con = TestUtil.openDB();
         TestUtil.createTable(con, "testtimezone",
@@ -692,12 +692,12 @@ public class TimezoneTest extends TestCase
             return;
 
         Statement stmt = con.createStatement();
-        stmt.execute("SET TimeZone = 'Europe/Helsinki'");
+        stmt.execute("SET TimeZone = 'Europe/Paris'");
         ResultSet rs = stmt.executeQuery("SELECT '1920-01-01'::timestamptz");
         rs.next();
         // select extract(epoch from '1920-01-01'::timestamptz - 'epoch'::timestamptz) * 1000;
 
-        assertEquals(-1577929192000L, rs.getTimestamp(1).getTime());
+        assertEquals(-1577923200000L, rs.getTimestamp(1).getTime());
     }
 
     /**

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/libpostgresql-jdbc-java.git



More information about the pkg-java-commits mailing list