Re: BUG #12326: I think maybe postgresql has a problem about timezone.

From: John R Pierce <pierce(at)hogranch(dot)com>
To: zhangyingyun001(at)gmail(dot)com, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #12326: I think maybe postgresql has a problem about timezone.
Date: 2014-12-24 10:12:55
Message-ID: 549A91A7.7000500@hogranch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On 12/24/2014 1:54 AM, zhangyingyun001(at)gmail(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message 张亚琪 2014-12-24 11:15:49 Re: BUG #12326: I think maybe postgresql has a problem about timezone.
Previous Message zhangyingyun001 2014-12-24 09:54:23 BUG #12326: I think maybe postgresql has a problem about timezone.