From owner-freebsd-current@freebsd.org Mon Aug 7 11:35:22 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 87E4BDCD22A for ; Mon, 7 Aug 2017 11:35:22 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward17o.cmail.yandex.net (forward17o.cmail.yandex.net [IPv6:2a02:6b8:0:1a72::1e7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3CA4D667DF; Mon, 7 Aug 2017 11:35:22 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from mxback7g.mail.yandex.net (mxback7g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:168]) by forward17o.cmail.yandex.net (Yandex) with ESMTP id 58A2224420; Mon, 7 Aug 2017 14:35:10 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback7g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id U753V1ugp1-ZAEiXZx1; Mon, 07 Aug 2017 14:35:10 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=passap.ru; s=mail; t=1502105710; bh=o7qBLb9JLHvAwpU2WwhQujAisjPfUU8xBILBdOgV8d4=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=Gi5sRyowcs6pHHcY+gGXoS5LsfgXZMUyZ5PhqfkaqO7CDaHgF45I5uF06S4M2+zWK RnYy6TzYkEwtncwY7J0mSFYJKM++oVhLzt6x3OX1JhREHoAjiPRpKW0Sm+DuFUTK9d 533H3kVftvOyQL1G/FDYYm6fNr3+bn7zczaFP91k= Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id A65PZphmiJ-Z9beYhDD; Mon, 07 Aug 2017 14:35:09 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=passap.ru; s=mail; t=1502105709; bh=o7qBLb9JLHvAwpU2WwhQujAisjPfUU8xBILBdOgV8d4=; h=Subject:To:References:From:Message-ID:Date:In-Reply-To; b=rjlHIoo967+U2ej09t/9Z+T/4/kvHc7d1893tNs0BDkOnRz+AOi0Gp4xqLXd8a5oq ZRrnX8ScRTwB8o20Qg2etx6V4TVM9DGBUPCCvVqLxINJrBDQQS73f3YlrywwR3RpO1 R0qF4L/X3We7atYgDAe31bxOyvvMQ7+5V++R11i4= Authentication-Results: smtp3o.mail.yandex.net; dkim=pass header.i=@passap.ru Subject: Re: [tzsetup] can't set up local timezone if CMOS is set to UTC To: freebsd-current@freebsd.org, marius@FreeBSD.org References: From: Boris Samorodov Message-ID: <5589ae79-7893-ac15-36be-1418788c5733@passap.ru> Date: Mon, 7 Aug 2017 11:35:09 +0000 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Aug 2017 11:35:22 -0000 07.08.2017 10:54, Trond Endrestøl пишет: > On Mon, 7 Aug 2017 09:51+0300, Boris Samorodov wrote: > >> So my question is: how to set up local time zone if CMOS is set to UTC? > > My timezone is Europe/Oslo, adjust to fit your timezone: > > rm -f /etc/wall_cmos_clock > cp -p /usr/share/zoneinfo/Europe/Oslo /etc/localtime > echo Europe/Oslo > /var/db/zoneinfo Done. Got UTC time marked as local time. (Five minutes later) Ntpdate fixed it, now local time is OK. Thank you, Trond. And (seems to be) the final question: can that be done via tzsetup (as it used to be)? -- WBR, Boris Samorodov (bsam) FreeBSD Committer, http://www.FreeBSD.org The Power To Serve