diff options
author | Igor Sfiligoi <isfiligoi@ucsd.edu> | 2012-09-10 18:41:23 +0000 |
---|---|---|
committer | Igor Sfiligoi <isfiligoi@ucsd.edu> | 2012-09-10 18:41:23 +0000 |
commit | bacc6a25b93c5fa76e873c9c2c2cddf6526dfe2e (patch) | |
tree | 2cdc68527e94b98974181da4f48a8b3ff18fe92c /src | |
parent | edeed03fa3538ecbb76f9b9c84a1d3f70ada0178 (diff) |
Add additional protection for timezone calculation
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/rrdFlot.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/rrdFlot.js b/src/lib/rrdFlot.js index 8587d61..e607e6e 100644 --- a/src/lib/rrdFlot.js +++ b/src/lib/rrdFlot.js @@ -207,7 +207,7 @@ rrdFlot.prototype.createHTML = function() { // the passed timezone does not make sense
// find the local time
var d= new Date();
- true_tz=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])));
|