From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/11107 Path: news.gmane.org!.POSTED!not-for-mail From: JS Newsgroups: gmane.linux.lib.musl.general Subject: DST change issue for timezones in southern hemisphere Date: Mon, 6 Mar 2017 12:44:53 +0200 Message-ID: <34ea8f18-42d9-7817-7595-00435ac24b22@direct.lv> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1488797128 7380 195.159.176.226 (6 Mar 2017 10:45:28 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 6 Mar 2017 10:45:28 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 To: musl@lists.openwall.com Original-X-From: musl-return-11122-gllmg-musl=m.gmane.org@lists.openwall.com Mon Mar 06 11:45:24 2017 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1ckq8l-00011Z-28 for gllmg-musl@m.gmane.org; Mon, 06 Mar 2017 11:45:19 +0100 Original-Received: (qmail 23778 invoked by uid 550); 6 Mar 2017 10:45:14 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 23608 invoked from network); 6 Mar 2017 10:45:07 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=direct-lv.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=GdFQXNYB9JPlZxD3hbZpV2piWGF7NbBx3EXg4h8QcLk=; b=d/l/0CPs7/Pver4XyRkJKHDZdtOg3wnLAPPEvYmU3WMGMOZXpXp47qumY9IMmQWebK iFiWb719268FKlqVOLXX+h4NWpm1XxWZl+UwgH+Y9jkSBR+jTqPcBUuVlNixZtTZ104W WUODPXBgz3NVE2w1uNy5WP4GTEpPOxb8NvTnxBcs5ADP6BhC3JXi0ZCjsE0epQnYv/QE J5z5oQ0hzeC40+UZtMB9EtG908la4FJqhefp9IxuRh4qQIbJc/5c91GiAgaN2l9B53Va 8lyRVKpIs3i45As023uUePUQ96d8GRBysSRa/hxnlTHY+L3yFgj/qwJJHN5ISx+Oj55v x7Zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=GdFQXNYB9JPlZxD3hbZpV2piWGF7NbBx3EXg4h8QcLk=; b=sRq9Hn0mJddi2CSImOorU90QcJ4cBqjf3ECWLUFjHpupXvJystyeBbmiZeTsOcAPS6 GHT10Lzdf+cVg3anye/Z/FSZNQNHrCIPZWa7C2Ou3E4yEmsN8llZhkaH1Ph8F6wcgXiB chPxJoCxBcLzm6OYrlFWGHLylYVU6MZ5opiMfZ+2Vje+V6UJBf4xXc8f1IyBmsLVithC vp32iN3i4saOCa9ICMnqrNFD5v6BOZMuXBPvGphkIeZO3QaYMsv30AlS1IncW+/5Lsa/ 0MAY4nJNfxzH8HFBSzaGII9DuhrMQX2vokxpdmrtTPiiTJ42PVMJxU3FKhIRi11yh4zP 7Aaw== X-Gm-Message-State: AMke39nsdILwTRA3mcvUwOReAo03P+KjBkZGOVdTaIT0oAx2RVZrlj7VW+MBrWRA/Fizlg== X-Received: by 10.46.32.106 with SMTP id g103mr4580698ljg.15.1488797094805; Mon, 06 Mar 2017 02:44:54 -0800 (PST) Xref: news.gmane.org gmane.linux.lib.musl.general:11107 Archived-At: Hi! For some reason DST change in southern hemisphere occurs 1 hour late when clock is turned backward and 1 hour early when clock is turned forward. For example, timezone for spec for Brazil is: BRT3BRST,M10.3.0/0,M2.3.0/0 Which means that DST change occurs at midnight. Output of date for both DST changes: ~# date Sun Feb 19 00:59:59 BRST 2017 ~# date Sun Feb 19 00:00:00 BRT 2017 ~# date Sat Oct 14 22:59:59 BRT 2017 ~# date Sun Oct 15 00:00:00 BRST 2017 I've tested the same code on same hardware but with uClibc library instead of musl and it works fine.