NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Fix current time
A couple ways; earlier I mentioned sysinst -- again, the Utilities menu
has an option to select a timezone, e.g. either a "regional" setting
like "America/New_York" or one of the mnemonic's like "EDT".
The NetBSD Guide (section 3.13. System configuration) shows what this
might look like during an install, you can run sysinst after a completed
installation as well:
http://www.netbsd.org/docs/guide/en/netbsd.html#exinst-system-configuration
The Guide in general is a good resource if you're just starting out with
NetBSD and figuring out how to do admin and config things.
You could also manually replace the /etc/localtime symlink with another of
your choosing. Same effect as using sysinst.
sr.
On Mon, Sep 02, 2024 at 04:46:10PM +0000, Todd Gruhn wrote:
> So I ent to /etc ,and looked.
>
> localtime -> /usr/share/zoneinfo/UTC
>
> That was set by system on Mar 28 -- I upgraded the system.
> The current mess happened when I was playing with ntpdate / ntpd .
> So how do I fix it??
>
> On Mon, Sep 2, 2024 at 4:08 PM Steve Rikli <sr%genyosha.net@localhost> wrote:
> > On Mon, Sep 02, 2024 at 03:13:30PM +0000, Todd Gruhn wrote:
> > > I reset time to 13:10 -- my current time for EST is about
> > > 11:10 .
> > >
> > > How do I reset this back to this time, and at in EST
> >
> > Timezone is set by the /etc/localtime file, which is typically a symlink
> > pointing to a time zone definition file in /usr/share/zoneinfo/.
> >
> > E.g. for a system in the US on the west coast, you might have:
> >
> > $ ls -la /etc/localtime
> > lrwxr-xr-x 1 root wheel 39 Aug 31 21:39 /etc/localtime -> /usr/share/zoneinfo/America/Los_Angeles
> >
> > If you don't set the timezone during installation or with 'sysinst' at
> > some point, NetBSD defaults to UTC.
> >
> > sysinst Utility menu has a selection for setting timezone, you can also
> > adjust the /etc/localtime symlink to your preference.
> >
> > Note that changing the timezone doesn't actually change the clock itself,
> > merely the system's display of the time. If you want to change the clock
> > you could use the date(1) command to do it manually, run ntpdate / ntpd(8)
> > if you want the system to regularly sync with other time servers, etc.
> >
> > cheers,
> > sr.
Home |
Main Index |
Thread Index |
Old Index