pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-sql@postgresql.org
Subject: Re: timeofday() and now() issue..
Date: Sun, 4 May 2003 16:17:04 +0530
Message-ID: <200305041617.04998.mallah@trade-india.com> (raw)
In-Reply-To: <10656.1051888606@sss.pgh.pa.us>
References: <200305021844.35194.mallah@trade-india.com>
	<200305022037.09625.mallah@trade-india.com>
	<10656.1051888606@sss.pgh.pa.us>

On Friday 02 May 2003 8:46 pm, Tom Lane wrote:
> Rajesh Kumar Mallah <mallah@trade-india.com> 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?


Tom 

Do i have to only change POS(8) to POS(22)
in line below in datetime.c ?

 {"ist", TZ, POS(8)},            /* Israel */

so that IST is interpreted as Indian Time Zone?

so some other places too ?


Regds
mallah.



>
> 			regards, tom lane

-- 
Rajesh Kumar Mallah,
Project Manager (Development)
Infocom Network Limited, New Delhi
phone: +91(11)6152172 (221) (L) ,9811255597 (M)

Visit http://www.trade-india.com ,
India's Leading B2B eMarketplace.




view thread (8+ messages)

Message-ID: <200305041617.04998.mallah@trade-india.com>
Permalink:  ../200305041617.04998.mallah@trade-india.com/
Also on:    postgresql.org/message-id/200305041617.04998.mallah@trade-india.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: mallah@trade-india.com, tgl@sss.pgh.pa.us
  Subject: Re: timeofday() and now() issue..
  In-Reply-To: <200305041617.04998.mallah@trade-india.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox