[or-cvs] [torbutton/master 09/47] Bug 1246 - Fix IST timezone issue.

mikeperry at torproject.org mikeperry at torproject.org
Thu Sep 30 16:20:14 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: e82942aca6fa8aee5146decea54f1d100f871d4c

---
 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 24297fa..3410f07 100644
--- a/src/chrome/content/torbutton.js
+++ b/src/chrome/content/torbutton.js
@@ -881,10 +881,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.7.1




More information about the tor-commits mailing list