Monthly Archives: March 2014

Unix/Linux date command fails when calculating “yesterday”

Problem: A shell-script running every day short after midnight doesn’t work properly once per year after daylight-saving time adjustment. e.g. an expected logfile is missing (“somefile.YYYYMMDD.log”) Discussion:┬áThe Unix date command calculates the wrong date when used with “–date yesterday” on … Continue reading

Posted in CLI, Linux | Tagged , | Leave a comment