summaryrefslogtreecommitdiffstats
path: root/jquery-ui-timepicker-addon.js
diff options
context:
space:
mode:
authorBruno Harbulot <bruno@distributedmatter.net>2011-02-28 14:00:20 +0000
committerBruno Harbulot <bruno@distributedmatter.net>2011-02-28 14:00:20 +0000
commit33ca84c9825f6bf4d74d6976588932504876d092 (patch)
treef9ef1ff3d37c921fe9e0c3c5afedc3cc8b24d36f /jquery-ui-timepicker-addon.js
parentda54680397156b375f9629d056571747f2dd0bbd (diff)
downloadjQuery-Timepicker-Addon-33ca84c9825f6bf4d74d6976588932504876d092.zip
jQuery-Timepicker-Addon-33ca84c9825f6bf4d74d6976588932504876d092.tar.gz
jQuery-Timepicker-Addon-33ca84c9825f6bf4d74d6976588932504876d092.tar.bz2
Fix for default timezone if missing.
Diffstat (limited to 'jquery-ui-timepicker-addon.js')
-rw-r--r--jquery-ui-timepicker-addon.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/jquery-ui-timepicker-addon.js b/jquery-ui-timepicker-addon.js
index 19c1b7b..38dcd74 100644
--- a/jquery-ui-timepicker-addon.js
+++ b/jquery-ui-timepicker-addon.js
@@ -54,6 +54,7 @@ function Timepicker() {
hour: 0,
minute: 0,
second: 0,
+ timezone: '+0000',
hourMin: 0,
minuteMin: 0,
secondMin: 0,
@@ -409,7 +410,7 @@ $.extend(Timepicker.prototype, {
.text(typeof val == "object" ? val.label : val);
})
);
- this.timezone_select.val(this.timezone);
+ this.timezone_select.val((typeof this.timezone != "undefined" && this.timezone != null && this.timezone != "") ? this.timezone : o.timezone);
this.timezone_select.change(function() {
tp_inst._onTimeChange();
});