Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 476651337B47 for ; Mon, 21 Mar 2011 09:51:19 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 75004-03 for ; Mon, 21 Mar 2011 12:51:07 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outmail148104.authsmtp.com (outmail148104.authsmtp.com [62.13.148.104]) by mail.postgresql.org (Postfix) with ESMTP id 9CA351337BA6 for ; Mon, 21 Mar 2011 09:51:06 -0300 (ADT) Received: from mail-c187.authsmtp.com (mail-c187.authsmtp.com [62.13.128.33]) by punt9.authsmtp.com (8.14.2/8.14.2/Kp) with ESMTP id p2LCp4T6063168; Mon, 21 Mar 2011 12:51:04 GMT Received: from [192.168.23.4] (212.100.42.202.fixip.bitel.net [212.100.42.202]) (authenticated bits=0) by mail.authsmtp.com (8.14.2/8.14.2) with ESMTP id p2LCp1um057654; Mon, 21 Mar 2011 12:51:02 GMT Message-ID: <4D8749B5.20407@2ndQuadrant.com> Date: Mon, 21 Mar 2011 13:51:01 +0100 From: Susanne Ebrecht User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 MIME-Version: 1.0 To: Yura Sokolov CC: pgsql-bugs@postgresql.org Subject: Re: Setting timezone: is it bug or intended? References: <4D831633.4020504@gmail.com> In-Reply-To: <4D831633.4020504@gmail.com> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit X-Server-Quench: e084ff40-53b9-11e0-ab46-001185d377ca X-AuthReport-Spam: If SPAM / abuse - report it at: http://www.authsmtp.com/abuse X-AuthRoute: OCdxZQATClZOUR8T DCUJJHVGRTw4LxFW CBkfawBdJUwMSABN M15eIxoJcUtGHBZ8 UiQUWVRVUU1wW2lw agBRb0tfY0hQXgVq TkxLXFBSFhpqBAMB SF4cLmoydkAbeHt3 Y0NmEHJYW0w0IEZ1 RhgCEW0bYGQyYX0e URVYalIGdAVXfh9E a1h6AHAKZjZWKBg1 TUcAFQ0eBgAXEylJ XgALIhoOQEMGDDk6 SkJKHC5nHFFNTTg8 Zxs8Yl8aAEsXPkg+ ZjMA X-Authentic-SMTP: 61633235383639.1000:706 X-AuthFastPath: 0 (Was 255) X-AuthVirus-Status: No virus detected - but ensure you scan with your own anti-virus system. X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.6 tagged_above=-5 required=5 tests=BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201103/254 X-Sequence-Number: 29764 Hello Yora Sokolov, On 18.03.2011 09:22, Yura Sokolov wrote: > > postgres=# set timezone='+03:00'; > SET > postgres=# select now(); > now > ------------------------------ > 2011-03-18 05:20:35.46008-03 > (1 row) Maybe this is not a bug - just an inconsistence: Look here (tested with 9.0): =# set timezone='+3.5'; SET =# select current_timestamp; now ---------------------------------- 2011-03-21 16:05:34.761112+03:30 (1 row) In any case, this should get documented. Susanne -- Susanne Ebrecht - 2ndQuadrant PostgreSQL Development, 24x7 Support, Training and Services www.2ndQuadrant.com