nachiketh
Posts: 45
Joined: Wed Sep 25, 2013 4:54 pm

NTP Client Configuration

Sat Jul 15, 2017 2:51 pm

I have setup my rPi to sync time from an NTP server on my network, I have a couple of questions regarding the same.
  • Is there a way to make my rPi sync the timezone information as well along with the time. currently its only syncing the time but the timezone is still the same
  • On boot, how to make sure the rPi syncs the time before all my other user processes start on the rPi as my application relies on the sytem time heavily.
If any of you have been able to achieve the above two functionalities, please let me know. Thanks in advance! :D

mfa298
Posts: 1387
Joined: Tue Apr 22, 2014 11:18 am

Re: NTP Client Configuration

Sat Jul 15, 2017 5:48 pm

nachiketh wrote:
  • Is there a way to make my rPi sync the timezone information as well along with the time. currently its only syncing the time but the timezone is still the same
NTP just works with times in UTC, timezone is a feature of the system and may even be different for different users on a system. In Raspbian you should be able to change the system timezone with raspi-config.

There is a train of thought that says systems should always run in UTC with timezones only set for users that need a timezone set. That's more useful for servers where you might need to match logs up between systems (and maybe between organisations), it's much easier when all logs work in the same timezone and most people can convert between UTC and local time much more easily than between two different timezones.

Return to “Advanced users”