Tim M�ller-Seydlitz said:
> there is bug in DateTime::Set that was
> revealed with an application using 
> DateTime::Events::Cron.
> I would like to know whether I can expect an 
> update of the module or whether I rather set
> up a work-around.

This "bug" was stated as:
If you ask for the next cron event after "now",
it returns an event in UTC time.

But this is not a bug - it happens because now()
returns UTC time.

If you asked for next cron after a floating
time, the result would be a floating time.

So you may have to use something like:

  $dt_now = DateTime->now();  # UTC
  $dt_now->set_time_zone( $local_tz );
  $dt_next = $cron->next( $now );

- Flavio S. Glock


Reply via email to