summaryrefslogtreecommitdiff
path: root/jarmon.js
diff options
context:
space:
mode:
Diffstat (limited to 'jarmon.js')
-rw-r--r--jarmon.js9
1 files changed, 3 insertions, 6 deletions
diff --git a/jarmon.js b/jarmon.js
index 6b29692..2ffa942 100644
--- a/jarmon.js
+++ b/jarmon.js
@@ -717,12 +717,9 @@ jarmon.ChartCoordinator = function(ui) {
});
}
- // Don't set a default tzoffset if one has already been added to the form
- if(tzoffsetEl.val() === '') {
- // Default timezone offset based on localtime
- var tzoffset = -1 * new Date().getTimezoneOffset() * 60 * 1000;
- tzoffsetEl.val(tzoffset);
- }
+ // Default timezone offset based on localtime
+ var tzoffset = -1 * new Date().getTimezoneOffset() * 60 * 1000;
+ tzoffsetEl.val(tzoffset);
// Update the time ranges and redraw charts when the form is submitted
this.ui.find('[name="action"]').bind('click', function(e) {