in reply to Astro::Sunrise error
It sounds like a bug related to handling leap years (obviously). Have you raised a bug tag for it (see rt://Astro-Sunrise)?
Maybe DateTime::Event::Sunrise will do the trick instead?