On 30 Jun 2004, at 1:41 PM, [EMAIL PROTECTED] wrote:
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 );

or the more concise:

$dt_next = $cron->next( DateTime->now( time_zone => $local_tz ) );

(Where IIRC $local_tz could be 'local' if your DateTime knows the correct local time zone)

Cheers!
Rick


Senior Developer PrintSupply - Print Procurement & Supply Management 18 Greenaway Street VIC 3105 Tel: (03) 9850 3255 Fx: (03) 9850 3277 http://www.printsupply.com.au/




Reply via email to