should set_time_zone always return $dt?

2005-09-13 Thread Bill Moseley
set_time_zone returns undef if the new time zone is the same as the old. Is that by design? I got caught doing this: return $self-class_time-set_time_zone( $tz ); in the cases when $tz was not changing. -- Bill Moseley [EMAIL PROTECTED]

Re: should set_time_zone always return $dt?

2005-09-13 Thread Dave Rolsky
On Tue, 13 Sep 2005, Bill Moseley wrote: set_time_zone returns undef if the new time zone is the same as the old. Is that by design? I got caught doing this: return $self-class_time-set_time_zone( $tz ); in the cases when $tz was not changing. Nope, that's definitely a bug. -dave