Received: from news.tht.net (news.hub.org [216.126.91.242]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f9SE66P40285 for ; Sun, 28 Oct 2001 09:06:06 -0500 (EST) (envelope-from news@news.tht.net) Received: (from news@localhost) by news.tht.net (8.11.4/8.11.4) id f9SDnQD92455 for pgsql-admin@postgresql.org; Sun, 28 Oct 2001 08:49:26 -0500 (EST) (envelope-from news) From: "Emmanuel Guyot" X-Newsgroups: comp.databases.postgresql.admin Subject: Re: pg_dump and timestamp : problem with TimeZone Date: Sun, 28 Oct 2001 14:43:17 +0100 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 32 Message-ID: <9rh2d1$2q93$1@news.tht.net> References: <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/237 X-Sequence-Number: 2481 Well, I've just solved the problem : I don't use anymore the TZ variable. And now there is no more problem. Though, I had to modify my programs to force the Timezone at each request. If you have another workaround, just tell... Emmanuel Guyot "Emmanuel Guyot" a écrit dans le message de news: 9r11np$mk9$1@news.tht.net... > 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 > > >