pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Time problem
2+ messages / 2 participants
[nested] [flat]

* Time problem
@ 2002-02-20 12:32 Jaya Swarup <jayas@bsil.com>
  2002-02-20 15:19 ` Re: Time problem Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Jaya Swarup @ 2002-02-20 12:32 UTC (permalink / raw)
  To: pgsql-admin; +Cc: nileshn@bsil.com

Hi All,
I have installed postgres 7.1.3 as database.

For my application I have used timestamp as the datatype for date and time.

I am facing the following problem:

1) While inserting data, I do not have any trouble and the time taken is the
system time.
2) In the console when I select data it shows me the correct time.
3) BUT, when I am retrieving data from the sql query (code) and displaying
it, it is inexplicably ahead of the System time by exactly 30 mins.
4) I have tried setting the TIME ZONE variable to all possible combinations
as mentioned in the documentation. But even then if I ask the system to SHOW
TIME ZONE, it says "TIME ZONE IS UNKNOWN".
5) I have tried to find and set the environment variable, but again to no
avail.

I need help to sort this out, since it is throwing my otherwise sensible
application out of gear.

Regards
Jaya




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Time problem
  2002-02-20 12:32 Time problem Jaya Swarup <jayas@bsil.com>
@ 2002-02-20 15:19 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2002-02-20 15:19 UTC (permalink / raw)
  To: jayas@bsil.com; +Cc: pgsql-admin; nileshn@bsil.com

"Jaya Swarup" <jayas@bsil.com> writes:
> 3) BUT, when I am retrieving data from the sql query (code) and displaying
> it, it is inexplicably ahead of the System time by exactly 30 mins.

Sure sounds like you are running in some odd time zone.

> 4) I have tried setting the TIME ZONE variable to all possible combinations
> as mentioned in the documentation. But even then if I ask the system to SHOW
> TIME ZONE, it says "TIME ZONE IS UNKNOWN".

This is bizarre.  Exactly what platform are you running on, and exactly
which "possible combinations" have you tried?

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-02-20 15:19 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-20 12:32 Time problem Jaya Swarup <jayas@bsil.com>
2002-02-20 15:19 ` Tom Lane <tgl@sss.pgh.pa.us>

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