Thanks for all the comments on the issue of setting datetime cron events with time zone
Still I find the handling confusing:
$cron = DateTime::Event::Cron->from_cron(cron => '15 18 * * 1-5');
# Doesn't this set the time zone for the previously defined cron events?
$cron = $cron->set_time_zone('Europe/London');
$now = DateTime->now(time_zone => 'Europe/Berlin');
$next = $cron->next($now);
print $next->strftime( "%a %F %T %Z\n");
# Gives Mon 2004-06-21 17:15:00 GMT/BST
In my opinion this should give 18:15:00 GMT/BST whatever the time_zone of now is. (As
long as it is less than or equal to a +/- 12 hours shift)
Could you please explain this to me?
Tim
_______________________________________________________
WEB.DE Video-Mail - Die E-Mail der nachsten Generation!
Jetzt testen: http://freemail.web.de/?mc=021198