Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3iwK-000182-Gl for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Dec 2014 10:13:12 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Y3iwJ-0007B4-Ej for pgsql-bugs@arkaria.postgresql.org; Wed, 24 Dec 2014 10:13:11 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Y3iwI-0007Ax-C7 for pgsql-bugs@postgresql.org; Wed, 24 Dec 2014 10:13:10 +0000 Received: from hogranch.com ([75.101.82.47]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Y3iwF-0000HG-9h for pgsql-bugs@postgresql.org; Wed, 24 Dec 2014 10:13:08 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id sBOAD0H03983; Wed, 24 Dec 2014 02:13:00 -0800 Message-ID: <549A91A7.7000500@hogranch.com> Date: Wed, 24 Dec 2014 02:12:55 -0800 From: John R Pierce User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: zhangyingyun001@gmail.com, pgsql-bugs@postgresql.org Subject: Re: BUG #12326: I think maybe postgresql has a problem about timezone. References: <20141224095423.11501.9655@wrigleys.postgresql.org> In-Reply-To: <20141224095423.11501.9655@wrigleys.postgresql.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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