Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fbZL9-00046h-EV for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Jul 2018 22:36:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fbZL6-0000Gm-7b for pgsql-bugs@arkaria.postgresql.org; Fri, 06 Jul 2018 22:36:32 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fbZL5-0000Gb-UE for pgsql-bugs@lists.postgresql.org; Fri, 06 Jul 2018 22:36:32 +0000 Received: from mail-qt0-x229.google.com ([2607:f8b0:400d:c0d::229]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fbZL2-0007wW-4R for pgsql-bugs@postgresql.org; Fri, 06 Jul 2018 22:36:30 +0000 Received: by mail-qt0-x229.google.com with SMTP id c5-v6so11197632qth.5 for ; Fri, 06 Jul 2018 15:36:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=2ndquadrant-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=EiD4mq6a19ueFUL/45+4aVBJJDf4mapPXK5JaKLS7QY=; b=dEMhiHcBtpkLYxjZfBPXUooZwrZhzOAFuhRqa0j8Iv4ShpylrNM4G7/BW4iOpmVl+Z oPxyACgZ4YetgEMV85m9xQbep2LU0ufCT/wrLgHcSZ8PHpHMMyMvD0kitY0Hv9R6vI47 xWc082jEAS4QDgy6rTXHtmKRaSvxUBhEQjIxTliWe5POxhBPENQZxxa1kL3TATyt+3ic YHzbpgiYM/xRk6B7bqcEY3SvRIZWxKTprJhnTTi3N3kXeot3WAs1Rp3c1THZdTbYVsc1 f0S2YNg4xVVR+VCfNCzW1UbTBuGhaaJHolCI6ZKsrxQgfEiYcu1czIA39jf7t8v3KhH6 Jh/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=EiD4mq6a19ueFUL/45+4aVBJJDf4mapPXK5JaKLS7QY=; b=aNkpZuvLn18b2T3W/D3T1NWWPBXQrQXHsfiIc4m6CEmdjaCDeKEMpAq9Z7FyeTsE75 cUG/ppEv8k15yRJU9wt8fBamj/JJ18qv2fOqeVAbTQ9lSx4z3AtfBVB7d6swJaQl+erY 28QSfD6lYf6w6Wa3md7EcLPzhtcsqrZ8S5EpqYf08WsLLJrVFEhv7rPcc8HOv1hnQTZz eXA+myLKfaKdHOZi3PPcOMrj+qYvXBNBDt3psoxxHk/eF7J7nGMKRdBGAAN226vcPtZW GOAIK/2c7NcvbTVbcVOyhEZiVTZ7olrzdJefKTqSpqVqeutVSElaGfSogaX8h7n5m48u cozg== X-Gm-Message-State: APt69E2T6we5R4SfgMCDDX24iUsEYa95sVIECkvZw7SgZP4W9MJFQMaE 2IEqKk4Z/0EcBFc4vM4lgojvrA== X-Google-Smtp-Source: AAOMgpe0o2xl8cf9I/ifM8oosDQfvUxMp+qCX3hGpVCN87POfkGsPgguUW+p4pzTIoGLXzzf15rK1g== X-Received: by 2002:ac8:38d5:: with SMTP id g21-v6mr11048688qtc.288.1530916586856; Fri, 06 Jul 2018 15:36:26 -0700 (PDT) Received: from alvin.alvh.no-ip.org ([190.121.29.3]) by smtp.gmail.com with ESMTPSA id e15-v6sm50026qti.22.2018.07.06.15.36.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Jul 2018 15:36:26 -0700 (PDT) Received: by alvin.alvh.no-ip.org (Postfix, from userid 1000) id 4D5E021A8; Fri, 6 Jul 2018 18:36:24 -0400 (-04) Date: Fri, 6 Jul 2018 18:36:24 -0400 From: Alvaro Herrera To: Philippe Lavoie-Mongrain Cc: pgsql-bugs@postgresql.org Subject: Re: Incorrect interpretation of time zone "Africa/Sao_Tome" on PG 9.6? Message-ID: <20180706223624.nefd73lycrjt2qzv@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: NeoMutt/20170306-137-4415bd-dirty (1.8.0) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2018-Jul-06, Philippe Lavoie-Mongrain wrote: > This query: > select ('2018-07-07 00:00 + 00'::timestamptz) AT TIME ZONE 'Africa/Sao_Tome' > Returns this result: > 2018-07-07 00:00:00.000000 > > However, according to more than one source, including this one: > https://www.zeitverschiebung.net/en/timezone/africa--sao_tome, it should > have +1 hour offset. Apparently, Evaristo do Espirito Santo Carvalho decided to sign on December 28th that the country would change timezone on January 1st ... http://www.mnec.gov.st/index.php/publicacoes/documentos/file/90-decreto-lei-n-25-2017 (link found on IANA's tzdata sources) This is updated as of 9.6.7, so if you're on an older release, you need to upgrade. Unless your install uses system timezone data, in which case you need to update your OS's tzdata package. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services