* Timezone problems
@ 2013-05-09 8:37 Alex Sassmannshausen
2013-05-09 20:41 ` Ludovic Courtès
0 siblings, 1 reply; 3+ messages in thread
From: Alex Sassmannshausen @ 2013-05-09 8:37 UTC (permalink / raw)
To: bug-guix@gnu.org
Hello all,
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).
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.
Would guix normally have recompiled coreutils following the gcc upgrade
too? If so then the problem must be something else — but the date
program invoked through /bin/date returns the correct local time (installed
through aptitude), so it seems guix specific.
If not — is there a way to force re-installation from scratch for just
coreutils?
Best wishes,
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Timezone problems
2013-05-09 8:37 Timezone problems Alex Sassmannshausen
@ 2013-05-09 20:41 ` Ludovic Courtès
2013-05-14 21:06 ` Alex Sassmannshausen
0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2013-05-09 20:41 UTC (permalink / raw)
To: alex.sassmannshausen; +Cc: bug-guix@gnu.org
Alex Sassmannshausen <alex.sassmannshausen@gmail.com> 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 ‘tzdata’ package (which I just
added yesterday!). Then you must set the TZDIR environment variable to
point to it, like this:
export TZDIR=$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’s fixed too.
> Would guix normally have recompiled coreutils following the gcc upgrade
> too? If so then the problem must be something else — but the date
> program invoked through /bin/date returns the correct local time (installed
> through aptitude), so it seems guix specific.
>
> If not — is there a way to force re-installation from scratch for just
> coreutils?
What matters most is what’s in your profile. I just run ‘guix package --upgrade’,
which atomically upgrades everything that’s installed in your profile
(so you get the new Coreutils, and everything linked against the new libc.)
HTH!
Ludo’.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Timezone problems
2013-05-09 20:41 ` Ludovic Courtès
@ 2013-05-14 21:06 ` Alex Sassmannshausen
0 siblings, 0 replies; 3+ messages in thread
From: Alex Sassmannshausen @ 2013-05-14 21:06 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: bug-guix@gnu.org
Hi
> Actually you first need to install the ‘tzdata’ package (which I just
> added yesterday!). Then you must set the TZDIR environment variable to
> point to it, like this:
>
> export TZDIR=$HOME/.guix-profile/share/zoneinfo
>
> The C library (the one from Guix) will then get timezone info from there.
Fabulous! That seems to have done the trick.
Congrats on the release of 0.2.
Best wishes,
Alex
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-05-14 21:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-09 8:37 Timezone problems Alex Sassmannshausen
2013-05-09 20:41 ` Ludovic Courtès
2013-05-14 21:06 ` Alex Sassmannshausen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).