logoalt Hacker News

paradox460last Tuesday at 9:31 PM1 replyview on HN

The systemd one supports timezones. You can say America/Denver and the like, or Etc/UTC


Replies

simoncionyesterday at 4:50 AM

1) Your production equipment doesn't have its TZ set to UTC? Enjoy dealing with the intermittent and irregular hassle of DST changes, I guess.

2) From the crontab(5) on my system:

  The  CRON_TZ  variable specifies the time zone specific for the cron ta‐
  ble.  The user should enter a time according to the specified time  zone
  into the table.  The time used for writing into a log file is taken from
  the local time zone, where the daemon is running.
If you have a job you need scheduled in a different timezone, dump a new file in /etc/cron.d, alter its CRON_TZ variable and go to town, as it were.