Description: When the two values compared into $o are read fall on
 across a second boundary, illegal timezones +0x99 can be
 generated. Fix that bug by rounding.
Origin: vendor
Bug-Debian: http://bugs.debian.org/566013
Forwarded: yes
Reviewed-By: Gunnar Wolf <gwolf@debian.org> 2010-02-02
Last-Update: 2010-02-11

--- swaks-20100211.0.orig/swaks
+++ swaks-20100211.0/swaks
@@ -1950,7 +1950,7 @@ sub get_date_string {
     @l = gmtime($et);
   } else {
     my @g = gmtime($et);
-    $o = (timelocal(@l) - timelocal(@g))/36;
+    $o = int(0.5 + (timelocal(@l) - timelocal(@g))/36);
   }
   $G::date_string = sprintf("%s, %02d %s %d %02d:%02d:%02d %+05d",
                  (qw(Sun Mon Tue Wed Thu Fri Sat))[$l[6]],
