This is usually related to:

  • A photocell that is shaded, dirty, or failing
  • Timer settings that need adjustment

Cleaning or repositioning the photocell often solves the problem.