Prerequisites
Before changing timezone, make sure you have:
- SSH access to your VPS
- Root or sudo privileges
Step 1: Check Current Timezone
Connect to your VPS:
ssh hxroot@YOUR_SERVER_IP -p 22
timedatectl
Or simply:
date
Step 2: List Available Timezones
timedatectl list-timezones | grep -i america
timedatectl list-timezones | grep -i europe
timedatectl list-timezones | grep -i asia
Use Page Up/Page Down to scroll, press q to exit.
Step 3: Set New Timezone
Example for New York:
sudo timedatectl set-timezone America/New_York
Example for London:
sudo timedatectl set-timezone Europe/London
Example for Dubai:
sudo timedatectl set-timezone Asia/Dubai
Step 4: Verify Change
timedatectl
date
Alternative Method (Legacy)
sudo ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime
Ensure NTP Sync is Active
sudo timedatectl set-ntp true
timedatectl status
Look for "NTP service: active".
Common Timezone Values
- US Eastern: America/New_York
- US Central: America/Chicago
- US Mountain: America/Denver
- US Pacific: America/Los_Angeles
- UK: Europe/London
- Germany: Europe/Berlin
- India: Asia/Kolkata
- Pakistan: Asia/Karachi
- UAE: Asia/Dubai
- Japan: Asia/Tokyo
- Australia East: Australia/Sydney
- China: Asia/Shanghai
- Singapore: Asia/Singapore
✅ Timezone updated. All logs and scheduled tasks will now use your local time.