On Thu, 13 Feb 2003 [EMAIL PROTECTED] wrote:

> There is a minor bug in offset_as_string, when calculating the offset for
> negative timezones.
>
> If you pass in the timezone -05:00, offset_as_string returns -19:00 this
> is because, according to Perl, -5%24 == 19.
>
> the solution is to change $hours %= 24 to $hours = abs($hours) % 24;
>
> I've attached a patch.

Applied.


-dave

/*=======================
House Absolute Consulting
www.houseabsolute.com
=======================*/

Reply via email to