summaryrefslogtreecommitdiff
path: root/jarmon.js
diff options
context:
space:
mode:
authorRichard Wall <richard@aziz>2010-07-11 09:17:13 +0100
committerRichard Wall <richard@aziz>2010-07-11 09:17:13 +0100
commit18c42232236441d9f7ccf055b8698b2d915c8a23 (patch)
treebcc092c7b8487c4ad4329160e3b35679320e4088 /jarmon.js
parent2578a05de1b25eddc8e133e5f9b3ed2428d5f38c (diff)
copy the zenoss tzoffset list ie utc + 0100
Diffstat (limited to 'jarmon.js')
-rw-r--r--jarmon.js11
1 files changed, 8 insertions, 3 deletions
diff --git a/jarmon.js b/jarmon.js
index efeca25..d5a6f28 100644
--- a/jarmon.js
+++ b/jarmon.js
@@ -655,16 +655,21 @@ jarmon.ChartCoordinator = function(ui) {
});
// Populate a list of tzoffset options
- var label;
+ var label, val;
options = this.ui.find('select[name="tzoffset"]');
for(var i=-12; i<=12; i++) {
label = 'UTC';
- if(i >= 0) {
+ val = i;
+ if(val >= 0) {
label += ' + ';
} else {
label += ' - ';
}
- label += Math.abs(i) + 'h';
+ val = Math.abs(val).toString();
+ if(val.length == 1) {
+ label += '0';
+ }
+ label += val + '00';
options.append($('<option />').attr('value', i*60*60*1000).text(label));
}