summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/docs/examples.html21
-rw-r--r--src/jquery-ui-timepicker-addon.js6
2 files changed, 1 insertions, 26 deletions
diff --git a/src/docs/examples.html b/src/docs/examples.html
index 9364fba..fa112d1 100644
--- a/src/docs/examples.html
+++ b/src/docs/examples.html
@@ -101,27 +101,6 @@ $('#timezone_example_2').datetimepicker({
</pre>
</div>
- <!-- ============= example -->
- <div class="example-container">
- <p>You may also use timezone string abbreviations for values. This should be used with caution. Computing accurate javascript Date objects may not be possible when trying to retrieve or set the date from timepicker (see setDate and getDate examples below). For simple input values however this should work.</p>
- <div>
- <input type="text" name="timezone_example_3" id="timezone_example_3" value="" />
- </div>
-<pre>
-$('#timezone_example_3').datetimepicker({
- timeFormat: 'HH:mm z',
- timezone: 'MT',
- timezoneList: [
- { value: 'ET', label: 'Eastern'},
- { value: 'CT', label: 'Central' },
- { value: 'MT', label: 'Mountain' },
- { value: 'PT', label: 'Pacific' }
- ]
-});
-
-</pre>
- </div>
-
<h3 id="slider_examples">Slider Modifications</h3>
<!-- ============= example -->
diff --git a/src/jquery-ui-timepicker-addon.js b/src/jquery-ui-timepicker-addon.js
index 6ba792e..3cff3a8 100644
--- a/src/jquery-ui-timepicker-addon.js
+++ b/src/jquery-ui-timepicker-addon.js
@@ -2065,11 +2065,7 @@
return 0;
}
- if(/^[a-zA-Z -]+$/.test(normalized)){ // possibly a user defined tz, so just give it back
- return tzString;
- }
-
- if (!/^(\-|\+)\d{4}$/.test(normalized)) {
+ if (!/^(\-|\+)\d{4}$/.test(normalized)) { // possibly a user defined tz, so just give it back
return parseInt(tzString, 10);
}