summaryrefslogtreecommitdiff
path: root/jarmon.js
diff options
context:
space:
mode:
authorRichard Wall <richard@aziz>2010-07-13 21:39:38 +0100
committerRichard Wall <richard@aziz>2010-07-13 21:39:38 +0100
commitbc3156fff165b228e6da03411d6b5a98b8f490d5 (patch)
tree1666a98d341dfb80fe303238757040591b582715 /jarmon.js
parent32b1238c614531450edf253a9ab547519791ebfd (diff)
Better control over the dhtml calendars
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) {