You are not logged in.

#1 2017-03-30 12:55:27

bearrider
Member
Registered: 2016-11-16
Posts: 15

[solved] automatically update to local time zones

hello,

How can I get the system clock to update to local time when I connect to a local network  (wifi/lan/tethered, whichever)?

For example, couple of days ago I landed in California but my system clock is still stuck at London time and date.

Last edited by bearrider (2017-03-30 21:04:44)

Offline

#2 2017-03-30 13:29:40

damo
....moderator....
Registered: 2015-08-20
Posts: 6,734

Re: [solved] automatically update to local time zones

You can manually reset the timezone with

sudo dpkg-reconfigure tzdata

This systemd information may also be useful...

man timedatectl

Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Offline

#3 2017-03-30 17:06:08

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: [solved] automatically update to local time zones

Try:

timedatectl set-ntp true

Offline

#4 2017-03-30 17:35:49

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: [solved] automatically update to local time zones

^ try it by all means, but i think it won't automatically switch timezones.
there's a little script called tzupdate, maybe it does what you want?

Offline

#5 2017-03-30 20:41:41

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,068
Website

Re: [solved] automatically update to local time zones

ohnonot wrote:

i think it won't automatically switch timezones

Yes, I think you're right hmm

Apparently, recent GNOME releases have automatic timezone detection:

System menu → Settings → Date & Time → Automatic Time Zone → On

https://help.gnome.org/users/gnome-help … ne.html.en

Offline

#6 2017-03-30 21:04:12

bearrider
Member
Registered: 2016-11-16
Posts: 15

Re: [solved] automatically update to local time zones

damo wrote:

You can manually reset the timezone with sudo dpkg-reconfigure tzdata

that works, I'm happy to do this manually.

Thanks also to the others who suggested 

timedatectl

I'll play around with it and see if something works.

Offline

Board footer

Powered by FluxBB