Received: from ganesh.paneris.org (IDENT:root@paneris.org [194.128.98.74]) by hub.org (8.9.3/8.9.3) with ESMTP id GAA83130 for ; Mon, 15 Nov 1999 06:25:32 -0500 (EST) (envelope-from tim@hoop.co.uk) Received: from noonoo (flav1.dircon.co.uk [194.112.47.31]) by ganesh.paneris.org (8.8.7/8.8.7) with SMTP id LAA27722; Mon, 15 Nov 1999 11:23:38 GMT Message-ID: <01a501bf2f5c$b6f9e3b0$0501a8c0@noonoo> From: "Tim Joyce" To: "Peter Mount" , "paneris messageboard" , References: Subject: Re: [INTERFACES] ResultSet.getDate Date: Mon, 15 Nov 1999 11:29:20 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 > > Peter, > > > > >The date and time methods are being rewritten for 6.6 as they can't handle > > >some of the different time zones. > > > > Thanks, can I set postgres to pass dates to JDBC in a format that it can > > understand? > > The SET DATESTYLE statement can be used to force the backend to return > dates in a particular format. The best one being ISO. This problem is still causing me headaches, I can change the timezone for the session: finsbury=> select current_timestamp ; ?column? ---------------------- 1999-11-15 06:57:38-05 (1 row) finsbury=> set timezone='gmt'; SET VARIABLE finsbury=> select current_timestamp ; ?column? ---------------------- 1999-11-15 11:58:37+00 (1 row) And also for the postgres user (by setting PGTZ=GMT in.bash_profile), But how do I set the timezone when I start postgres so that dates are always reported in GMT? postgresql 6.4 RH6 TIA timj