# HG changeset patch
# User Matt Mackall <mpm@selenic.com>
# Date 1205135677 18000
#      Mon Mar 10 02:54:37 2008 -0500
# Node ID 210ee6204a295d21bf444d98dc92cf7e23973c71
# Parent  bab6c8f2bb1a545fbfdf1c14bdc04780a23ea11a
dates: fix fractional timezone display rounding bug

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -1532,7 +1532,7 @@
     t, tz = date or makedate()
     s = time.strftime(format, time.gmtime(float(t) - tz))
     if timezone:
-        s += timezone_format % (-tz / 3600, ((-tz % 3600) / 60))
+        s += timezone_format % (int(-tz / 3600.0), ((-tz % 3600) / 60))
     return s
 
 def shortdate(date=None):