pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John R Pierce <pierce@hogranch.com>
To: zhangyingyun001@gmail.com
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #12326: I think maybe postgresql has a problem about timezone.
Date: Wed, 24 Dec 2014 02:12:55 -0800
Message-ID: <549A91A7.7000500@hogranch.com> (raw)
In-Reply-To: <20141224095423.11501.9655@wrigleys.postgresql.org>
References: <20141224095423.11501.9655@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 12/24/2014 1:54 AM, zhangyingyun001@gmail.com wrote:
>       hi all, I am a new. My postgresql's version is 8.4.18. And I have
> encounter a problem about timezone.
>       When I insert a Date value like 'Wed Dec 24 17:28:46 CST 2014' (it
> comes from new Date() with Java), and then if you select this value , you
> will find a big problem about time. However , If I insert this value without
> the timezone of CST, the time is normal absolutely. So I haven't idea about
> whether it is a bug. But I hope you can consider it.
>        Thank you for your time. Thanks.

CST is ambiguous, it can be either US Central Standard Time, or Chinese 
Standard Time.

what SQL data type is the field you inserted this timestamp into, and 
what result did you get back?  also, what is your local TIMEZONE 
setting, as shown by the SQL command SHOW TIMEZONE;  ?

-- 
john r pierce                                      37N 122W
somewhere on the middle of the left coast



-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (6+ messages)  latest in thread

Message-ID: <549A91A7.7000500@hogranch.com>
Permalink:  ../549A91A7.7000500@hogranch.com/
Also on:    postgresql.org/message-id/549A91A7.7000500@hogranch.com

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: pierce@hogranch.com, zhangyingyun001@gmail.com
  Subject: Re: BUG #12326: I think maybe postgresql has a problem about timezone.
  In-Reply-To: <549A91A7.7000500@hogranch.com>
  References: <20141224095423.11501.9655@wrigleys.postgresql.org> <549A91A7.7000500@hogranch.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