diff options
author | Richard Wall <richard@aziz> | 2010-07-11 09:17:13 +0100 |
---|---|---|
committer | Richard Wall <richard@aziz> | 2010-07-11 09:17:13 +0100 |
commit | 18c42232236441d9f7ccf055b8698b2d915c8a23 (patch) | |
tree | bcc092c7b8487c4ad4329160e3b35679320e4088 /jarmon.js | |
parent | 2578a05de1b25eddc8e133e5f9b3ed2428d5f38c (diff) |
copy the zenoss tzoffset list ie utc + 0100
Diffstat (limited to 'jarmon.js')
-rw-r--r-- | jarmon.js | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -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)); } |