Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 430BEB5DC5C for ; Fri, 16 Sep 2011 12:02:23 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 81020-04 for ; Fri, 16 Sep 2011 15:02:16 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from oproxy7-pub.bluehost.com (oproxy7-pub.bluehost.com [67.222.55.9]) by mail.postgresql.org (Postfix) with SMTP id 5ED0AB5DC2A for ; Fri, 16 Sep 2011 12:02:16 -0300 (ADT) Received: (qmail 28870 invoked by uid 0); 16 Sep 2011 15:02:15 -0000 Received: from unknown (HELO host159.hostmonster.com) (74.220.207.159) by oproxy7.bluehost.com with SMTP; 16 Sep 2011 15:02:14 -0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=timbira.com; s=default; h=Content-Transfer-Encoding:Content-Type:In-Reply-To:References:Subject:CC:To:MIME-Version:From:Date:Message-ID; bh=9qFuVJBDbskP3rkbflEysYKqCs6NR95M+QbGtLNKrhc=; b=M7rK0niLp0NH82ReBRrrupDKmEQmV8EVQSM13VlUJluqqWZPXfzdvGlA0dSeJPk26im0cOgcOoCcfOkrDlA2z2my4ie/yAs7OAp8ZqKmC3V3EsFkg5K1bSQLKlH5v27R; Received: from [201.34.9.65] (helo=[10.3.2.2]) by host159.hostmonster.com with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R4Zvi-0006bf-IK; Fri, 16 Sep 2011 09:02:14 -0600 Message-ID: <4E7364B8.5070608@timbira.com> Date: Fri, 16 Sep 2011 12:01:12 -0300 From: Euler Taveira de Oliveira User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Icedove/3.1.13 MIME-Version: 1.0 To: pratikchirania CC: pgsql-bugs@postgresql.org Subject: Re: Timezone issues with Postrres References: <1316149023380-4809498.post@n5.nabble.com> In-Reply-To: <1316149023380-4809498.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Identified-User: {1651:host159.hostmonster.com:timbirac:timbira.com} {sentby:smtp auth 201.34.9.65 authed with euler@timbira.com} X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001 X-Spam-Level: X-Archive-Number: 201109/98 X-Sequence-Number: 31115 On 16-09-2011 01:57, pratikchirania wrote: > Time is being interpreted incorrectly when I set time zone to UTC -6 > (Central America). > Time shown when I query "SELECT NOW()" is 1 hour ahead of system time. > PS: Central america does not have daylight saving. That might not be the > issue. > It is not a bug. Was is the exact postgresql version? How old is your installation? It seems your PostgreSQL or OS tzdata is not up to date. If 'pg_config --prefix' command has '--with-system-tzdata' update your installation to the latest minor version (for example, 8.4 -> 8.4.8) else update your OS tzdata and restart the PostgreSQL. -- Euler Taveira de Oliveira - Timbira http://www.timbira.com.br/ PostgreSQL: Consultoria, Desenvolvimento, Suporte 24x7 e Treinamento