[or-cvs] [torbutton/master 07/30] Bug 1246 - Fix IST timezone issue.

mikeperry at torproject.org mikeperry at torproject.org
Fri Apr 9 22:54:00 UTC 2010


Author: Mike Perry <mikeperry-git at fscked.org>
Date: Thu, 18 Mar 2010 14:56:10 -0700
Subject: Bug 1246 - Fix IST timezone issue.
Commit: 568a6573cb79717f011208cc35ec71833e4e10f5

---
 src/chrome/content/torbutton.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/chrome/content/torbutton.js b/src/chrome/content/torbutton.js
index 750efff..4b8086a 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -954,10 +954,10 @@ function torbutton_set_timezone(mode, startup) {
             offStr = "+";
         }
         
-        if(offset/60 < 10) {
+        if(Math.floor(offset/60) < 10) {
             offStr += "0";
         }
-        offStr += (offset/60)+":";
+        offStr += Math.floor(offset/60)+":";
         if((offset%60) < 10) {
             offStr += "0";
         }
-- 
1.6.5




More information about the tor-commits mailing list