Comment on page
How to change the date and time
Here are some steps you can take to modify the date and time settings in Linux, both for the system and PHP.
- a VPS
- an OnetSolutions account
To modify the date or time of your VPS, follow these steps and enter the respective commands:
To synchronize the time with an NTP server, you can follow these steps:
apt-get install ntp ntpdate -y
To locate the PHP configuration file, you can follow these steps:
find /etc/ -name php.ini -type f
then modify it by adding the following line:
date.timezone = "Europe/Paris"