timedate is one day off in linux code example Example: date linux minus 1 day $ date +%Y:%m:%d -d "1 day ago" 2009:11:09