not sure yet why the two modules differ here
Astro::Coords returns the next sunrise/sunset after the provided timestamp.
DateTime::Event::Sunrise returns the sunrise/sunset for the provided date.
You should have used
instead of$obsDate->set_time_zone('Pacific/Auckland');
$obsDate->add(days=>1);
In reply to Re^2: Trouble with time zones and Sun rise/set
by ikegami
in thread Trouble with time zones and Sun rise/set
by GrandFather
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |