Dino Geek, try to help you

How to change the time zone on a VPS server?


1. Connect to your VPS server using an SSH connection.

1. Once you’re connected, check the current date and timezone by typing the following command: `date`. This command will display the current time and timezone.

1. The timezone on a Linux system is set via a symbolic link from the file `/etc/localtime` to a file under the `/usr/share/zoneinfo` directory that corresponds to the timezone you want to set. To see your current timezone, use this command: `ls -l /etc/localtime`

1. To change the time zone, you’ll need to replace the existing link with a link to the timezone file corresponding to the timezone you want to set. First, you’ll have to find the timezone file you need. These files are all stored under `/usr/share/zoneinfo`. You can list all the available timezone by typing the following command: `ls /usr/share/zoneinfo`

1. Once you know what timezone you want to set, you can create the symbolic link. For example, if you want to set the timezone to U.S. Eastern time, you would use the following command: `ln -sf /usr/share/zoneinfo/America/New_York /etc/localtime`

1. You can then check that the timezone has been set correctly by typing `date` again.

Note: You may need to enter your root password to execute these commands. Also, the exact file path might vary slightly based on your specific server’s configuration.

Remember to replace “America/New\_York” with the timezone that applies to your specific geographical location.


Simply generate articles to optimize your SEO
Simply generate articles to optimize your SEO





DinoGeek offers simple articles on complex technologies

Would you like to be quoted in this article? It's very simple, contact us at dino@eiki.fr

CSS | NodeJS | DNS | DMARC | MAPI | NNTP | htaccess | PHP | HTTPS | Drupal | WEB3 | LLM | Wordpress | TLD | Domain name | IMAP | TCP | NFT | MariaDB | FTP | Zigbee | NMAP | SNMP | SEO | E-Mail | LXC | HTTP | MangoDB | SFTP | RAG | SSH | HTML | ChatGPT API | OSPF | JavaScript | Docker | OpenVZ | ChatGPT | VPS | ZIMBRA | SPF | UDP | Joomla | IPV6 | BGP | Django | Reactjs | DKIM | VMWare | RSYNC | Python | TFTP | Webdav | FAAS | Apache | IPV4 | LDAP | POP3 | SMTP

| Whispers of love (API) | Déclaration d'Amour |






Legal Notice / General Conditions of Use