Re: Time zone 'GMT+8'

From: silly8888 <silly8888(at)gmail(dot)com>
To: seiliki(at)so-net(dot)net(dot)tw
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Time zone 'GMT+8'
Date: 2009-11-29 07:22:40
Message-ID: 3c8f9f940911282322q35fb356ayb3f8888286430bce@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

>From http://www.postgresql.org/docs/current/static/datatype-datetime.html#DATATYPE-TIMEZONES

Another issue to keep in mind is that in POSIX time zone names,
positive offsets are used for locations west of Greenwich.

On Sun, Nov 29, 2009 at 2:08 AM, <seiliki(at)so-net(dot)net(dot)tw> wrote:
> The target pgsql is compiled from 8.4rc1. 'GMT+8' can be found in installed binary file .../share/postgresql/timezone/Etc/GMT+8.
>
> This is the recorded script:
>
> -----BEGIN record----------
> db1=# select now();
>              now
> -------------------------------
>  2009-11-29 14:44:37.322414+08
> (1 row)
>
> db1=# set timezone to 'GMT+8';
> SET
> db1=# select now();
>              now
> -------------------------------
>  2009-11-28 22:45:03.397545-08
> (1 row)
>
> db1=# set timezone to GMT-8';
> SET
> db1=# select now();
>              now
> -------------------------------
>  2009-11-29 14:45:39.160701+08
> (1 row)
>
> db1=# set timezone to '0';
> SET
> db1=# select now();
>              now
> -------------------------------
>  2009-11-29 06:45:54.347482+00
> (1 row)
> -----END record----------
>
> I thought time zone 'GMT+8'  was '8' or UTC+8, and 'GMT-8' was '-8' or UTC-8. Does the original time zone settings shipped with source have special interpretation that is different from my understanding?
>
> Regards,
> CN
>
> --
> 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 CyTG 2009-11-29 10:27:04 Help, server cannot start anymore
Previous Message seiliki 2009-11-29 07:08:01 Time zone 'GMT+8'