Skip to content

Commit a446965

Browse files
Merge pull request trentrichardson#328 from jun66j5/dev
Fixed typo for iso8601
2 parents d33d08f + 06b9afe commit a446965

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ function Timepicker() {
8888
separator: ' ',
8989
altFieldTimeOnly: true,
9090
showTimepicker: true,
91-
timezoneIso8609: false,
91+
timezoneIso8601: false,
9292
timezoneList: null,
9393
addSliderAccess: false,
9494
sliderAccessArgs: null
@@ -176,7 +176,7 @@ $.extend(Timepicker.prototype, {
176176
var timezoneList = [];
177177
for (var i = -11; i <= 12; i++)
178178
timezoneList.push((i >= 0 ? '+' : '-') + ('0' + Math.abs(i).toString()).slice(-2) + '00');
179-
if (tp_inst._defaults.timezoneIso8609)
179+
if (tp_inst._defaults.timezoneIso8601)
180180
timezoneList = $.map(timezoneList, function(val) {
181181
return val == '+0000' ? 'Z' : (val.substring(0, 3) + ':' + val.substring(3));
182182
});
@@ -284,16 +284,16 @@ $.extend(Timepicker.prototype, {
284284
var tz = treg[order.z].toUpperCase();
285285
switch (tz.length) {
286286
case 1: // Z
287-
tz = this._defaults.timezoneIso8609 ? 'Z' : '+0000';
287+
tz = this._defaults.timezoneIso8601 ? 'Z' : '+0000';
288288
break;
289289
case 5: // +hhmm
290-
if (this._defaults.timezoneIso8609)
290+
if (this._defaults.timezoneIso8601)
291291
tz = tz.substring(1) == '0000'
292292
? 'Z'
293293
: tz.substring(0, 3) + ':' + tz.substring(3);
294294
break;
295295
case 6: // +hh:mm
296-
if (!this._defaults.timezoneIso8609)
296+
if (!this._defaults.timezoneIso8601)
297297
tz = tz == 'Z' || tz.substring(1) == '00:00'
298298
? '+0000'
299299
: tz.replace(/:/, '');
@@ -1102,7 +1102,7 @@ $.datepicker._gotoToday = function(id) {
11021102
tzoffset = Math.abs(tzoffset);
11031103
var tzmin = tzoffset % 60;
11041104
tzoffset = tzsign + ('0' + (tzoffset - tzmin) / 60).slice(-2) + ('0' + tzmin).slice(-2);
1105-
if (tp_inst._defaults.timezoneIso8609)
1105+
if (tp_inst._defaults.timezoneIso8601)
11061106
tzoffset = tzoffset.substring(0, 3) + ':' + tzoffset.substring(3);
11071107
tp_inst.timezone_select.val(tzoffset);
11081108
}

0 commit comments

Comments
 (0)