Fixed Bug for Sun-Up Hours

Fixed a small bug related to sun-up hours.