Skip to content

Commit 0b02b15

Browse files
committed
Fix timezones for inserts.
1 parent c0eae0d commit 0b02b15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/org/zalando/typemapper/AbstractTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public void setUp() throws Exception {
6868

6969
execute("CREATE TABLE tmp.test_time(lt timestamp without time zone, gt timestamp with time zone, zone text);");
7070
execute(
71-
"INSERT INTO tmp.test_time(lt, gt, zone) VALUES ('2012-07-30 16:00:00', '2012-07-30 14:00:00+0', 'utc'), ('2012-07-30 18:00:00', '2012-07-30 18:00:00+2', 'cest'), ('2012-07-30 21:00:00', '2012-07-30 10:00:00-09', 'japan');");
71+
"INSERT INTO tmp.test_time(lt, gt, zone) VALUES ('2012-07-30 16:00:00' AT TIME ZONE 'CEST', '2012-07-30 14:00:00+0', 'utc'), ('2012-07-30 18:00:00' AT TIME ZONE 'CEST', '2012-07-30 18:00:00+2', 'cest'), ('2012-07-30 21:00:00' AT TIME ZONE 'CEST', '2012-07-30 10:00:00-09', 'japan');");
7272

7373
final String test_time_sproc =
7474
"CREATE OR REPLACE FUNCTION tmp.test_time_function(OUT id smallint, OUT msg text) " + "RETURNS record AS "

0 commit comments

Comments
 (0)