modified case day_of_week case statement for cron compatibility