va6gc
Posts: 4
Joined: Mon Apr 10, 2017 5:50 pm
Location: Daysland, Alberta, Canada

Setting time

Mon Apr 10, 2017 5:55 pm

How do I set the time, time zone and country?
I can change it but the value does not stay after rebooting

Thanks
Glen
VA6GC

W. H. Heydt
Posts: 12648
Joined: Fri Mar 09, 2012 7:36 pm
Location: Vallejo, CA (US)

Re: Setting time

Tue Apr 11, 2017 4:10 am

You set time zone in the configuration panel under preferences (assuming you're using the GUI desktop, otherwise use raspi-config, it's the same program). Go into the localization options. You can set locale (basically, country), timezone, keyboard, and WiFi country.

The critical thing with regards to time is: Does your Pi have a network connection? If so, within a short period of time, it will set itself by referencing network time protocol (NTP) servers. When a proper shutdown is done, the Pi will save the time, and use that time when it reboots until it can get an NTP update. If your Pi does not have a network connection, you can buy and set up a real time clock (RTC) and then it will set the time at boot from the RTC. There are a lot of different RTC modules out there, and a lot of guides for how to set them up. I'd recommend the Adafruit guide.

va6gc
Posts: 4
Joined: Mon Apr 10, 2017 5:50 pm
Location: Daysland, Alberta, Canada

Re: Setting time

Wed Apr 12, 2017 10:07 am

Thank you, I will try connecting to a network.
Glen

Return to “Beginners”