X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D5864D1B1BC for ; Mon, 14 Jun 2004 13:21:39 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 36197-09 for ; Mon, 14 Jun 2004 16:21:27 +0000 (GMT) Received: from mail.zanthus.com.br (mail.zanthus.com.br [200.153.11.167]) by svr1.postgresql.org (Postfix) with ESMTP id 75FE1D1B172 for ; Mon, 14 Jun 2004 13:21:22 -0300 (ADT) Received: from cperic (200-153-11-162.zanthus.com.br [200.153.11.162] (may be forged)) by mail.zanthus.com.br (8.11.6/8.11.6) with SMTP id i5EGLZJ05475 for ; Mon, 14 Jun 2004 13:21:37 -0300 From: "Eric Lemes" To: Subject: RES: Datetime problem Date: Mon, 14 Jun 2004 13:20:14 -0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <164.1087224965@sss.pgh.pa.us> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4927.1200 Importance: Normal X-Zanthus-MailScanner-Information: Please contact the ISP for more information X-Zanthus-MailScanner: Found to be clean X-MailScanner-From: eric.lemes@zanthus.com.br X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200406/108 X-Sequence-Number: 18053 Hello, - PostgreSQL 7.3.2 on i386-redhat-linux GCC 3.2.2 - Timezone: Brazil (GMT-3, I think). I think my problem is with the time zone. Using a SET TIME ZONE GMT, the result is Ok. But I don't know how to work with time zones correctly. When I send a date to to_timestamp, pgsql thinks this date is in GMT? Thanks for all your help. []'s Eric Lemes > -----Mensagem original----- > De: pgsql-sql-owner@postgresql.org > [mailto:pgsql-sql-owner@postgresql.org]Em nome de Tom Lane > Enviada em: segunda-feira, 14 de junho de 2004 11:56 > Para: Eric Lemes > Cc: pgsql-sql@postgresql.org > Assunto: Re: [SQL] Datetime problem > > > "Eric Lemes" writes: > > - select to_timestamp('2004 10 10 00 00 00', 'YYYY MM DD HH MI SS') > > the output is: > > - 2004-10-09 23:00:00-03 > > What PG version is this, on what platform, and what's your current > timezone setting? > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 7: don't forget to increase your free space map settings > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.693 / Virus Database: 454 - Release Date: 31/5/2004 > --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.693 / Virus Database: 454 - Release Date: 31/5/2004