summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIgor Sfiligoi <isfiligoi@ucsd.edu>2012-09-12 18:04:28 +0000
committerIgor Sfiligoi <isfiligoi@ucsd.edu>2012-09-12 18:04:28 +0000
commit2c7e3cc2de0481bfe74540a1deafb5a7a6b9738c (patch)
treeccb5a42712eb1174692ff46f6ec1f17c7c5ecaec /src
parent5b4e5cac3634f8060c17dd27d8b4031e91c2f079 (diff)
Default timezone had wrong sign
Diffstat (limited to 'src')
-rw-r--r--src/lib/rrdFlot.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rrdFlot.js b/src/lib/rrdFlot.js
index 4379c03..bafb18b 100644
--- a/src/lib/rrdFlot.js
+++ b/src/lib/rrdFlot.js
@@ -213,7 +213,7 @@ rrdFlot.prototype.createHTML = function() {
// the passed timezone does not make sense
// find the local time
var d= new Date();
- true_tz=Math.ceil(d.getTimezoneOffset()/60);
+ true_tz=-Math.ceil(d.getTimezoneOffset()/60);
}
for(var j=0; j<24; j++) {
timezone.appendChild(new Option(timezones[j],timezones[j],true_tz==Math.ceil(timezones[j])));