9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Phineas Pett <phineas.pett@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] [FIXED] Attempts to set timezone don't stick?
Date: Mon, 12 Nov 2012 20:36:15 -0600	[thread overview]
Message-ID: <CAJsduKn6HJSuMf2+-+kCA1i8bs3MPgFyjhAZHbhsMN6z3C-oAA@mail.gmail.com> (raw)
In-Reply-To: <CAJsduKn+3wjL9kKq27dhpPDX9yZv8EELpzn0nDzAveS9xBywwg@mail.gmail.com>

On 11/12/12, Phineas Pett <phineas.pett@gmail.com> wrote:
> On 11/12/12, John Floren <john@jfloren.net> wrote:
>> On Mon, Nov 12, 2012 at 5:33 PM, Phineas Pett <phineas.pett@gmail.com>
>> wrote:
>>> Hello List,
>>>
>>> I'm attempting to setup a native Plan 9 system for the first time, but
>>> I'm having a bit of trouble getting the timezone to ``stick.''
>>>
>>> Putting the following in my /lib/profile seemed the intuitive and
>>> correct thing to do:
>>>
>>> bind /adm/timezone/US_Central /adm/timezone/local
>>>
>>> But it does not work, and I don't understand why.
>>
>> I wouldn't expect this to work. According to date(1),
>> /adm/timezone/local is copied into /env/timezone by init, meaning your
>> bind comes far too late.
>
> Ah, thanks.  The manual has answered a lot of my questions so far, but
> apparently I need to read more carefully; but still, if I am logged
> into a remote system in a different time zone, shouldn't my client be
> able to display client-local time?  Is there a mechanism for that?  It
> seems to me that would be a logical benefit of the client having its
> own view of the namespace.
>

Ok thanks to both of you!  I may have been too hasty responding
earlier, I apologize for that.

Running a single aux/timesync process from profile now keeps the clock
steadily set.

And a simple

cat /adm/timezone/[timezone] > /env/timezone

in the profile can set an arbitrary timezone locally.

Phineas



      parent reply	other threads:[~2012-11-13  2:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-13  1:33 [9fans] " Phineas Pett
2012-11-13  1:39 ` John Floren
2012-11-13  2:15   ` Phineas Pett
2012-11-13  2:29     ` Anthony Sorace
2012-11-13  2:36     ` Phineas Pett [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJsduKn6HJSuMf2+-+kCA1i8bs3MPgFyjhAZHbhsMN6z3C-oAA@mail.gmail.com \
    --to=phineas.pett@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 NNTP newsgroup(s).