Windows 10
Head to Settings > Time & Language > Date & Time and turn on the toggle under
Set time automatically
Set time zone automatically.
That’s all there is to it! Now your time will change automatically, just like it does on your smartphone.
Mac
On your Mac, choose Apple menu > System Preferences, then click Date & Time
If the lock at the bottom left is locked , click it to unlock the preference pane.
Click Date & Time, then set the date and time automatically
Automatically: Select “Set date and time automatically”, then choose the network time server for your region.
Click Time Zone, then set the time zone automatically
Automatically: Select “Set time zone automatically using current location”.