If you set the Time Zone in raspi-config, the Raspberry Pi will automatically update the time and date on boot, if it is connected to the internet.
- Open a terminal and type ‘sudoraspi-config’.
- Select Localisation Options.
- Select I2 Change Timezone.
- Select your Geographical Area.
- Select your nearest City.
- Select Finish.
- Select Yes to reboot now.
If you don’t have an Internet connection then you can use the date command to set the date / time appropriately: