Skip to main content

Documentation Index

Fetch the complete documentation index at: https://help.onetsolutions.net/llms.txt

Use this file to discover all available pages before exploring further.

Correct date and time settings are important for logs, scheduled tasks, and applications.
Prerequisites
  • A VPS with OnetSolutions
  • SSH access to your server

Setting the Timezone

Run the timezone configuration wizard:
sudo dpkg-reconfigure tzdata
Follow the on-screen prompts to select your region and timezone.
Common timezone values: Europe/Paris, Europe/London, America/New_York, Asia/Tokyo, UTC

Time Synchronization (NTP)

Install and configure NTP:
sudo apt update
sudo apt install ntp ntpdate -y
Sync time immediately:
sudo ntpdate pool.ntp.org

PHP Timezone Configuration

To set the timezone for PHP applications:
1

Find the PHP config file

find /etc/ -name php.ini -type f
2

Edit the configuration

Open the php.ini file and add or modify:
date.timezone = "Europe/Paris"
3

Restart web server

sudo systemctl restart apache2
# or
sudo systemctl restart php-fpm

Verify Settings

Check current date, time, and timezone:
timedatectl