Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9MGZwP27395 for ; Mon, 22 Oct 2001 12:35:58 -0400 (EDT) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f9MBxsE23181 for pgsql-admin@postgresql.org; Mon, 22 Oct 2001 07:59:54 -0400 (EDT) (envelope-from news) From: "Emmanuel Guyot" X-Newsgroups: comp.databases.postgresql.admin Subject: pg_dump and timestamp : problem with TimeZone Date: Mon, 22 Oct 2001 13:59:41 +0200 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 20 Message-ID: <9r11np$mk9$1@news.tht.net> X-Complaints-To: scrappy@hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 To: pgsql-admin@postgresql.org X-Archive-Number: 200110/216 X-Sequence-Number: 2460 I have some columns with timestamp data type wich includes the time zone. I access these columns using JDBC which handle the time zone automaticly. Writing and reading data work fine. Though when I dump the base and restore it, the date are 2 hours later. Is seems to me that the timezone is lost somewhere. Here are technical information : - I've launched my base (7.1.3 with cygwin) while TZ=GMT-2. - To dump I use : pg_dump.exe -c -F c -Z 9 myDB - To restore I use : zcat file.gz | pg_restore -v -c -F c -d myDB For both dump and restore TZ is GMT-2. Thanks for your hints... Emmanuel Guyot