X-Original-To: pgsql-sql@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 118CD475ED4 for ; Fri, 2 May 2003 11:16:43 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 46DB8475E9D for ; Fri, 2 May 2003 11:16:42 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h42FGlU6010657; Fri, 2 May 2003 11:16:47 -0400 (EDT) To: Rajesh Kumar Mallah Cc: pgsql-sql@postgresql.org Subject: Re: timeofday() and now() issue.. In-reply-to: <200305022037.09625.mallah@trade-india.com> References: <200305021844.35194.mallah@trade-india.com> <10505.1051887437@sss.pgh.pa.us> <200305022037.09625.mallah@trade-india.com> Comments: In-reply-to Rajesh Kumar Mallah message dated "Fri, 02 May 2003 20:37:09 +0530" Date: Fri, 02 May 2003 11:16:46 -0400 Message-ID: <10656.1051888606@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-29.1 required=5.0 tests=BAYES_00,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200305/27 X-Sequence-Number: 13192 Rajesh Kumar Mallah writes: > tradein_clients=# SELECT timeofday(); > +-------------------------------------+ > | timeofday | > +-------------------------------------+ > | Fri May 02 20:34:13.634355 2003 IST | > +-------------------------------------+ Hmm. Looking in datetime.c, I see that Postgres believes "IST" is Israel Standard Time, GMT+2. So that explains the discrepancy, if you think it's GMT+5.5. What exactly are you doing to set the system timezone? regards, tom lane