• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

How to change system time in Virtual Server - DigitalOcean

pisanu

New Pleskian
Hi,

I installed PLESK 12.0.18 at DigitalOcean.
  • I can't update the system time manually.
  • I can't change the system time to my local time zone.
  • I can't change the system using the Network Time as it also won't synchronise.
Please help.
Nu
 
Do you mean that you can't do it in Tools&Settings -> System Time page or what?
 
No, I can't do it in Tools&Settings -> System Time page

I tried to update the time to Thailand time. But it won't change. (see image attached)
 

Attachments

  • screenshot_739.png
    screenshot_739.png
    52.3 KB · Views: 9
Yes, I show like that but the time is not changed.
You can see the time is 00.00 but our time here is noon.
So what ever I put there in the page it still won't change the time.
But I can save the Time Zone as you can see.
 
So, if you change timezone in Plesk UI and run 'date' command in CLI - you will see that output of this command is incorrect, right?
On my test VPS with Plesk all my changes in Plesk UI (Tools&Settings -> System Time) reflects in output of 'date' command in CLI.
Most probably this issue related to some specific settings of you DigitalOcean VPS? Have you tried ask their support?
 
They asked me to make change in CentOS.
I'd to know why Plesk just can't change this at UI page with the Time Zone, as it was successfully changed (as you can see). I also add the Network Server to synchronise and Plesk save the the input as well.

But the time won't change. It still ICT 00:00 (Thailand time is 13:00.)
 

Attachments

  • screenshot_740.png
    screenshot_740.png
    97.5 KB · Views: 5
Hi Igor,

I can the System Time via CLI to be Thailand time.
However to do that, I had to change to zoneinfo/America/Chicago in stead of /Asia/Bangkok in order to make the right Thailand time. This is very strange as the fact that Chicago time now 3:04 AM. (Time in Thailand now is 15:04.)

How could this possible?
 

Attachments

  • screenshot_741.png
    screenshot_741.png
    108.7 KB · Views: 6
  • screenshot_742.png
    screenshot_742.png
    52.8 KB · Views: 6
If you have Ubuntu VPS, try to fix this issue with

# dpkg-reconfigure tzdata
 
Here easy :)

Time zone files located at /usr/share/zoneinfo. Locate the appropriate named timezone for your location.

The active timezone used on your system is in the /etc/localtime

Backup the existing localtime file, always good practice - backup don't just over write.

sudo mv /etc/localtime /etc/localtime.bak


Next, create the link to the correct zone you picked at the start..

My example:

sudo ln -s /usr/share/zoneinfo/America/Los_Angeles /etc/localtime

Then verify with date

Cheers,

David
 
Hi,

I have same issue about system time on Plesk 12.0.18 update #74.
First i configure on Plesk => Tool & Setting => System Time
  • Timezone: America/Detroit
  • Synchronize system time: Yes
  • (domain for networktime): time.nist.gov
=> OK to apply.
Now i verify date by command line , OK it good , exactly time.

However

When i reboot server, i verify date by command line again, it show wrong time.
I log in Plesk again and check config on System Time, configuration still there, but clock display wrong time.
I tried both run dpkg-reconfigure tzdata as Igorg said and make symlink /etc/localtime as David said , still does not work.

It will work again if i click OK again to apply config on System Time , that mean this function wont work after restart system. And this is not good for my website which run many application depend on system timezone.

Any idea for my situation ?

Best regard,

p/s: my bad english
 
Last edited:
Back
Top