Maverickcdn
Senior Member
Question for the gurus regarding DST time and user session run scripts vs cron
Currently in my wicens script it is set to run every 10 mins and it writes to the config file the last cron run date/time using
If running that command in a logged in session the date/time is correct, when the command is run with cron the time is behind by 1hr for DST
Is there a different date command that needs to be used, or should date command run by root (cron) be displaying the correct DST adjusted time?
Currently in my wicens script it is set to run every 10 mins and it writes to the config file the last cron run date/time using
Code:
date +%c
If running that command in a logged in session the date/time is correct, when the command is run with cron the time is behind by 1hr for DST
Is there a different date command that needs to be used, or should date command run by root (cron) be displaying the correct DST adjusted time?