Skip to main content

Server time not using right timezone

Comments

7 comments

  • Infopro
    The docs on this may be of some use to you: Server Time - Documentation - cPanel Documentation
    0
  • Zoop
    No its not, not at all. Im saying the steps described in that document wont work. Changing the timezone does not correct it, nordoes doing it by commandline. Even though the timezone is set to Europe/Amsterdam, it shows GMT-2 on the same screen, thats simply not correct. Changing it to another timezone and back does not help either. Syncing with server als doesnt help.39661
    0
  • cPanelMichael
    Hello, Please post the output from the following command in order to verify the server environment this is happening on:
    grep '' /etc/redhat-release /usr/local/cpanel/version /var/cpanel/envtype
    I've seen this behavior on VPS environments in the past, as it's a limitation of the VPS software used on the main server node. Thank you.
    0
  • Zoop
    Hi Michael, here is the output:
    /etc/redhat-release:CentOS Linux release 7.2.1511 (Core) /usr/local/cpanel/version:11.58.0.20 /var/cpanel/envtype:kvm
    Thanks
    0
  • cPanelMichael
    /var/cpanel/envtype:kvm

    Please contact your provider and verify if the following considerations for adjusting a time zone or server time for KVM guests is applicable to their environment: Chapter 9. KVM guest timing management Thank you.
    0
  • Zoop
    My VPS provider forwarded me to set up ntpd, which i did. After completing the steps and running the 'date' command from terminal, i get a proper response: Mon Aug 22 11:09:07 CEST 2016
    Meaning, its something i had to do myself, it wasnt something for my VPS provider to do, so why did you ask me to contact my provider? Testing it in PHP by var_dumping a datetime object without setting any timezones also gives the proper time. However, the situtation in screenshot i attached earlier is still present. It still shows GMT-2 there, while it should be either CEST (like my other Cpanel server shows) or GMT+2 / UTC-1 While i certainly got progress because it shows correctly in the scripts now, but its strange the config still shows it wrong. This is a complete CentOS+Cpanel installation (supposed to work out of the box, right?), the same as 3 other servers we own, but this is the only one that has these problems. Why is this happening? And why do i need to set up NTPD while i never did such thing on the other servers?
    0
  • cPanelMichael
    My VPS provider forwarded me to set up ntpd, which i did. After completing the steps and running the 'date' command from terminal, i get a proper response: Mon Aug 22 11:09:07 CEST 2016 Meaning, its something i had to do myself, it wasnt something for my VPS provider to do, so why did you ask me to contact my provider?

    I'm happy to see you were able to partly address the issue. VPS providers generally have more information about the specific environment used to host your VPS, so it's a good idea to consult with a VPS provider for an issue like this.
    Testing it in PHP by var_dumping a datetime object without setting any timezones also gives the proper time. However, the situtation in screenshot i attached earlier is still present. It still shows GMT-2 there, while it should be either CEST (like my other Cpanel server shows) or GMT+2 / UTC-1

    Could you verify if /etc/sysconfig/clock exists on this system, and if so, let us know the contents of that file? Thank you.
    0

Please sign in to leave a comment.