From: Shilpa <shilpa.sudhakar@gmail.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: Time Zone in Postgres
Date: Fri, 7 Mar 2008 09:23:22 +1030
Message-ID: <2d6659d70803061453n4d685bbeo7ab74353853dbe08@mail.gmail.com> (raw)
In-Reply-To: <19281.1204827832@sss.pgh.pa.us>
References: <2d6659d70803051856x652174a5ic8655d070a95db59@mail.gmail.com>
<BLU110-W2010012C95121A7D325BF9A9120@phx.gbl>
<2d6659d70803052151q5861981aw3a1a2e39e3970704@mail.gmail.com>
<BLU110-W581D897155BF62F438C486A9120@phx.gbl>
<19281.1204827832@sss.pgh.pa.us>
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 *
Thanks and Regards,
On Fri, Mar 7, 2008 at 4:53 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Vishal Arora <aroravishal22@hotmail.com> writes:
> > Hi, I've been working on a timezone issue. I am in Adelaide Australia
> > and the daylight savings time this year has been changed. I am trying
> > to figure out the file which is required to be changed.
>
> The easiest and best solution would be to update to a newer PG release
> than 8.0.9 --- installing 8.0.15 over it would be painless and would fix
> a number of problems besides this one, including some rather nasty
> data-loss risks.
>
> If you really can't be bothered with that, you can probably use your
> operating system's copy of the timezone data files (try under
> /usr/share/zoneinfo for starters).
>
> regards, tom lane
>
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: shilpa.sudhakar@gmail.com, tgl@sss.pgh.pa.us
Subject: Re: Time Zone in Postgres
In-Reply-To: <2d6659d70803061453n4d685bbeo7ab74353853dbe08@mail.gmail.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