OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: jorgevisentini on November 05, 2019, 03:02:28 pm

Title: Brazil save time daylight
Post by: jorgevisentini on November 05, 2019, 03:02:28 pm
Hi all.

Can I configure save time daylight on OPNsense?
We had a little problem with the save time daylight this one year soo, the timezone "America/Sao_Paulo" is wrong.
Can I tune this configuration on OPNsense?
On Linux, I donwload the update rpm timezone, but on OPN I dont know to do.

For example:
Current date/time   Tue Nov 5 12:00:57 -02 2019
My PC: 11:01 -03

Thank you all.
Title: Re: Brazil save time daylight
Post by: franco on November 05, 2019, 04:57:01 pm
Time zone info comes from releases over at https://www.iana.org/time-zones -- make sure to report issues to them. You could patch the files on the disk, but it's not very straight forward and will be overwritten on updates.


Cheers,
Franco
Title: Re: Brazil save time daylight
Post by: jorgevisentini on November 05, 2019, 07:00:29 pm
Ok.

I go to search a little bit more because I guess that have some update package for FreeBSD.

Thank you.
Title: Re: Brazil save time daylight
Post by: franco on November 06, 2019, 05:39:42 pm
Updates of source code look like this:

https://github.com/opnsense/src/commit/b39b84d7aa6d8a

You should first make sure that the daylight saving change you reference has been released in tzdata or not.


Cheers,
Franco
Title: Re: Brazil save time daylight
Post by: jorgevisentini on November 06, 2019, 08:16:33 pm
Sorry my english...

I didn't find the change on this github code, but on the file https://data.iana.org/time-zones/releases/tzdb-2019c.tar.lz, yes.

On southamerica file, line 946, show the decree signed at May 04, finishing up with the save time daylight in Brazil.

But, I dont know how I fixe it on OPNsense.

Time zone: America/Sao_Paulo
On OPN interface: Wed Nov 6 17:13:50 -02 2019
On FreeBSD cli: Wed Nov  6 16:14:11 -03 2019
Title: Re: Brazil save time daylight
Post by: jorgevisentini on November 06, 2019, 09:05:24 pm
Hi Franco, I found the problem.

On OPNsense:

If I set the time zone settings ETC/GMT -3, the OPN advance time to 3 more hours.
If I set the time zone settings ETC/GMT +3, the OPN delay time to 3 more hours.

On FreeBSD it's Ok.

I think these two time zones are inverted.

Anyway, I think it's resolved, I guess lol