Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id BE7FB13364DE for ; Tue, 22 Mar 2011 19:52:16 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 05326-07 for ; Tue, 22 Mar 2011 22:52:07 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id CDE771337BA6 for ; Tue, 22 Mar 2011 19:52:05 -0300 (ADT) Received: by fxm17 with SMTP id 17so6870178fxm.19 for ; Tue, 22 Mar 2011 15:52:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-type :content-transfer-encoding; bh=x0WtmC5T97tSakVkdnKvdSBdzVwvrH1IpajqZtbC5o8=; b=LFMevoZkyrgk/JP7+ued1Or7mNiNfTOTO2Pj4U9y4Xy7R8eSTzdkeWdNUPoEy/8M0N o2J4qSVuNejDSrOULLKK4Du604BD0G9uBSFCLkI/je+3mLGGeKXubTc4SAeN6SZApQOs eUFY609FNS+N7Hzj7JAQMXw7+Zo01f4jRaYxI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=rICoycjeB69XdDpzH/g/ZfPkBwkp35d4xQigb/Aa9AJYQT5xKSqK6URP+NKJwiyhAw zoE1ceAroVgBdVtyFpYTSherqVYKNc2ggllOu+d27J8Ls6tcbfo1HrSM5fGmipcB6M58 HzSzFKtDulY4+kVgcDln6GOEyhqdA7IF6DzIo= Received: by 10.223.27.14 with SMTP id g14mr1882669fac.129.1300834325262; Tue, 22 Mar 2011 15:52:05 -0700 (PDT) Received: from [192.168.2.10] ([188.114.57.220]) by mx.google.com with ESMTPS id 14sm1735200fae.47.2011.03.22.15.52.01 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 22 Mar 2011 15:52:02 -0700 (PDT) Message-ID: <4D892810.5040001@gmail.com> Date: Wed, 23 Mar 2011 01:52:00 +0300 From: Yura Sokolov User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15pre) Gecko/20110207 Shredder/3.1.9pre MIME-Version: 1.0 To: Susanne Ebrecht CC: pgsql-bugs@postgresql.org Subject: Re: Setting timezone: is it bug or intended? References: <4D831633.4020504@gmail.com> <4D8749B5.20407@2ndQuadrant.com> In-Reply-To: <4D8749B5.20407@2ndQuadrant.com> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.899 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001 X-Spam-Level: X-Archive-Number: 201103/287 X-Sequence-Number: 29797 21.03.2011 15:51, Susanne Ebrecht пишет: > Hello Yora Sokolov, > > 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 > > My question were about sign of timezone: postgres=# set timezone='+03'; -- positive postgres=# select now(); 2011-03-18 11:20:29.696671+03 -- positive postgres=# set timezone='+03:00'; -- positive 2011-03-18 05:20:35.46008-03 -- negative Is it intended? Yura Sokolov