Dave Rolsky wrote:
> 
> On Wed, 24 Sep 2003, Flavio S. Glock wrote:
> 
> >  sub _following_sunrise {
> >     [ ... initialize ...]
> >     my $tz = $dt->time_zone;
> >     my $loc = $dt->locale;
> >     [ ... some calculations ... ]
> >     $tmp_rise->set_time_zone( $tz );   # unless $tz->is_floating ???
> >     $tmp_rise->set_locale( $loc );
> >     return $tmp_rise;
> >  }
> 
> It's probably ok to set the time zone even if the given DT is in the
> floating time zone.

No, converting from UTC to floating would give the same "unexpected"
results.

How about adding ( localtime - gmtime ) before converting to floating?

- Flavio S. Glock

Reply via email to