From 18c42232236441d9f7ccf055b8698b2d915c8a23 Mon Sep 17 00:00:00 2001 From: Richard Wall Date: Sun, 11 Jul 2010 09:17:13 +0100 Subject: copy the zenoss tzoffset list ie utc + 0100 --- jarmon.js | 11 ++++++++--- 1 file 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($('