Timezone problems on -current

Valery Seys valery at vslash.com
Mon May 3 16:20:10 UTC 2021



On 03/05/2021 17:34, bob prohaska wrote:
> It seems that the timezone gets screwed up each time the OS is
> upgraded on a Pi4  via sources on -current. ntpdate is working, but the
> machine reports a local time of
> bob at nemesis:~ % date
> Mon May  3 15:27:04 PDT 2021
> while a Pi2 reports
> fbsd at www:~ % date
> Mon May  3 08:28:35 PDT 2021
> 
> The timezone is PDT in both cases, but the time shown looks like
> UTC for the Pi4 but PDT for the Pi2.
> 
> I've noticed this before and cured it for a while by running tzsetup.
> The problem seems to return each time the OS is upgraded, though I
> have not kept careful track of what's going on. Anybody else noticed
> this?
> 
> Thanks for reading,
> 
> bob prohaska
>   
> _______________________________________________
> freebsd-arm at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org"
> 

1. instead of using 'tzsetup', copy your 
/usr/share/zoneinfo/<location>/localtime to /etc/localtime
2. then, see if the upgrade remove/overwrite it

It's weird 'date' report PDT in both case. Have you any 'TZ' var. set in your 
environ ? Try unset it, then 'date' should show the UTC. In short, I think TZ 
must be set accordingly to /etc/localtime in order to show something coherent.

My 2 cents,

p&l

v/


More information about the freebsd-arm mailing list