Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Timezone incorrect information
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
jhfecchio
n00b
n00b


Joined: 10 Dec 2014
Posts: 6

PostPosted: Sat Mar 01, 2025 4:36 am    Post subject: Timezone incorrect information Reply with quote

No matter what I do, timezone information does not work as intended. Using Openrc. Any tips?


$ sudo cp /usr/share/zoneinfo/America/Sao_Paulo /etc/localtime

$ date
Sat Mar 1 01:00:34 -03 2025

$ ntpdate pool.ntp.org
1 Mar 01:31:09 ntpdate[9988]: step time server 200.160.7.196 offset +1573.759250 sec

$hwclock --local
2025-03-01 04:06:11.707802-03:00

$ hwclock --utc
2025-03-01 01:06:15.107809-03:00
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54941
Location: 56N 3W

PostPosted: Sat Mar 01, 2025 11:17 am    Post subject: Reply with quote

jhfecchio,

What do you have in
Code:
/etc/timezone


America/Sao_Paulo is the right answer.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Hu
Administrator
Administrator


Joined: 06 Mar 2007
Posts: 23144

PostPosted: Sat Mar 01, 2025 2:41 pm    Post subject: Reply with quote

Also, what is the output of declare -p TZ? That variable can locally override the effect of /etc/timezone. A bare date shows me time consistent with my /etc/timezone. TZ=zone date instead shows me time in the specified zone.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum