From: cat@zip.com.au
To: Shilpa Sudhakar <ssudhakar@internode.com.au>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Time Zone in Postgres
Date: Fri, 7 Mar 2008 10:46:53 +1100
Message-ID: <20080306234653.GA20591@bunyip.billabong.weebeasite.net> (raw)
In-Reply-To: <47D076B3.8090304@internode.com.au>
References: <2d6659d70803051856x652174a5ic8655d070a95db59@mail.gmail.com>
<BLU110-W2010012C95121A7D325BF9A9120@phx.gbl>
<2d6659d70803052151q5861981aw3a1a2e39e3970704@mail.gmail.com>
<BLU110-W581D897155BF62F438C486A9120@phx.gbl>
<19281.1204827832@sss.pgh.pa.us>
<47D076B3.8090304@internode.com.au>
On Fri, Mar 07, 2008 at 09:26:51AM +1030, Shilpa Sudhakar wrote:
> Hi Tom,
>
> We have different databases with different versions.
>
> I checked the database with *version 8.2.4* by running the below query
>
> echo select timestamp with time zone \'epoch\' + 1206970200 \* INTERVAL
> \'1 second\'\; | psql template1
> ?column?
> ---------------------------
> 2008-03-31 23:00:00+09:30
> (1 row)
>
> This shows the wrong date. The actual result should be *2008-04-01
> 00:00:00+10:30 *
I believe postgres comes with its own timezone info. Check if the stuff
it has has the right timezone information. Personally I get it to use
the system timezone definitions so that I can keep things upto-date
easier.
--
CaT
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-admin@postgresql.org
Cc: cat@zip.com.au, ssudhakar@internode.com.au, tgl@sss.pgh.pa.us
Subject: Re: Time Zone in Postgres
In-Reply-To: <20080306234653.GA20591@bunyip.billabong.weebeasite.net>
* 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