From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Timezone problems Date: Thu, 09 May 2013 22:41:18 +0200 Message-ID: <87obcjvqc1.fsf@gnu.org> References: <87mws4o8ex.fsf@damselfly.home> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:54999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaXed-00068O-Qq for bug-guix@gnu.org; Thu, 09 May 2013 16:41:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UaXea-0005Q1-WA for bug-guix@gnu.org; Thu, 09 May 2013 16:41:31 -0400 Received: from [2a01:e0b:1:123:ca0a:a9ff:fe03:271e] (port=35971 helo=xanadu.aquilenet.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UaXea-0005Mi-R6 for bug-guix@gnu.org; Thu, 09 May 2013 16:41:28 -0400 In-Reply-To: <87mws4o8ex.fsf@damselfly.home> (Alex Sassmannshausen's message of "Thu, 09 May 2013 08:37:58 +0000") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: alex.sassmannshausen@gmail.com Cc: "bug-guix@gnu.org" Alex Sassmannshausen skribis: > I'm running into issues whereby the 'date' command that is part of the > coreutils package (installed through guix) returns non-timezone > corrected values (i.e. it returns UTC even for local time). Actually you first need to install the =E2=80=98tzdata=E2=80=99 package (wh= ich I just added yesterday!). Then you must set the TZDIR environment variable to point to it, like this: export TZDIR=3D$HOME/.guix-profile/share/zoneinfo The C library (the one from Guix) will then get timezone info from there. > I suspect this was to do with the locale complications of the earlier > gcc version that was part of guix, and that locale issue seems to be > resolved now: Guile 2.0.9 compiled with the new gcc does not complain > about locale settings anymore. This is actually unrelated but yes, this one=E2=80=99s fixed too. > Would guix normally have recompiled coreutils following the gcc upgrade > too? If so then the problem must be something else =E2=80=94 but the date > program invoked through /bin/date returns the correct local time (install= ed > through aptitude), so it seems guix specific. > > If not =E2=80=94 is there a way to force re-installation from scratch for= just > coreutils? What matters most is what=E2=80=99s in your profile. I just run =E2=80=98g= uix package --upgrade=E2=80=99, which atomically upgrades everything that=E2=80=99s installed in your profi= le (so you get the new Coreutils, and everything linked against the new libc.) HTH! Ludo=E2=80=99.