Backup cron running on UTC time

turbo2ltr

Verified User
Joined
Nov 29, 2021
Messages
19
I set up a backup but it didn't trigger. I had trouble finding the actual cron job DA creates, but finally found it under the diradmin user. (the help does not mention this)

Then to figure out why it wasn't running. I set it for a few minutes from the current time for testing but it never ran.
When I ran the date command while root and, I came up with my correct local time.
Eventually I tried to set the backup cron time to "UTC time a few minutes from now" and triggered when expected.

This is a new server, and a new control panel for me, but in the past (cpanel) my crons ran on local time.

Here is the output of timedatectl
Code:
# timedatectl
      Local time: Mon 2021-11-29 07:36:11 MST
  Universal time: Mon 2021-11-29 14:36:11 UTC
        RTC time: Mon 2021-11-29 14:36:10
       Time zone: America/Phoenix (MST, -0700)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: n/a

Timezone is correct. What am I missing?
 
It might be set wrongly in Diretadmin itself. There are 2 things to check anyway.

Be sure that /etc/localtime is a symlink to your timezone.
So /etc/localtime symlinks to /usr/share/zoneinfo/America/Phoenix

If that is correct, check your Directadmin Admin settings here:
https://yourdomain.com:2222/CMD_ADMIN_SETTINGS
in the middle column "Server settings" you will find the "Server's Timezone". Check if that is set to your timezone.
 
Thanks for the reply.
First looks right..
Code:
 # ll local*
-rw-r--r-- 1 root root 19 Jul 16  2014 locale.conf
lrwxrwxrwx 1 root root 35 Nov 27 10:10 localtime -> /usr/share/zoneinfo/America/Phoenix

Second looks right as well.
1638203300561.png


Very odd. Sounds like one of those things a reboot might help. Server hasn't been rebooted since it was a fresh VPS without DA on it..
 
Back
Top