We check all documents we can but are still unable to set the timezone from UTC to Singapore on our database,please help us set it asap
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
What database are you using? It’s a managed database by Digitalocean or standalone installation?
Regards - Sergio Turpín
Depending on the product you are using the way to set this is different.
Let’s assume you are using Managed Database, in such a case, you’ll need to contact DigitalOcean’s support to change it for you as currently you can’t do it from your end.
If you have a separate Droplet that you’ve installed an SQL instance on it, you’ll need to change the timezone of the Droplet.
ssh root@YourDropletIp
As soon as you are in, you can check your timezone using the timedatectl command. The system timezone is configured by symlinking /etc/localtime to a binary timezone identifier in the /usr/share/zoneinfo directory. Alternatively, you can also check the current system’s timezone by displaying the contents of the /etc/timezone file.
cat /etc/timezone
There are a few possibilities to change the timezone. The first one is using timedatectl
timedatectl list-timezones
You’ll something like
Europe/Oslo
Europe/Paris
Europe/Podgorica
Europe/Prague
Europe/Riga
Europe/Rome
Europe/Samara
Once you identify which time zone is accurate to your location, run the following command:
sudo timedatectl set-timezone your_time_zone
For example, to change the system’s timezone to Europe/Rome:
sudo timedatectl set-timezone Europe/Rome ```
Run the timedatectl command to verify the changes
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.