Re: Postgres and timezones

From: Steve Crawford <scrawford(at)pinpointresearch(dot)com>
To: Steve Rogerson <steve(dot)pg(at)yewtc(dot)demon(dot)co(dot)uk>
Cc: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>, Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>, "pgsql-general(at)postgresql(dot)org >> PG-General Mailing List" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Postgres and timezones
Date: 2016-01-20 15:38:40
Message-ID: CAEfWYyxMnDYduJxjAQSvt4AV9BT+7x_tvf739SVB-f65vyzadg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Is this of any use?

select * from pg_timezone_names where name = 'Europe/Lisbon';
name | abbrev | utc_offset | is_dst
---------------+--------+------------+--------
Europe/Lisbon | WET | 00:00:00 | f

-Steve

On Wed, Jan 20, 2016 at 7:24 AM, Steve Rogerson <steve(dot)pg(at)yewtc(dot)demon(dot)co(dot)uk>
wrote:

> On 20/01/16 13:27, Pavel Stehule wrote:
> >
> >
> >
> > Postgres doesn't store original TZ. It does recalculation to local TZ.
> If you
> > need original TZ, you have to store it separetely.
> >
>
> I know and that's what I'm trying to deal with. Given I know the origin
> TZ -
> as in Europe/Lisbon I'm trying to determine the short name so I can store
> it.
>
> I guess I'll have to use something other than pg to do it.
>
> Steve
>
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Pavel Stehule 2016-01-20 15:46:36 Re: Postgres and timezones
Previous Message Pavel Stehule 2016-01-20 15:34:22 Re: Postgres and timezones