NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Fix current time



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