@js-joda/timezone 2.14.0 → 2.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/bower.json +1 -1
  2. package/dist/js-joda-timezone-10-year-range.esm.js +20 -113
  3. package/dist/js-joda-timezone-10-year-range.esm.js.map +1 -1
  4. package/dist/js-joda-timezone-10-year-range.js +20 -113
  5. package/dist/js-joda-timezone-10-year-range.js.map +1 -1
  6. package/dist/js-joda-timezone-10-year-range.min.js +2 -2
  7. package/dist/js-joda-timezone-1970-2030.esm.js +20 -113
  8. package/dist/js-joda-timezone-1970-2030.esm.js.map +1 -1
  9. package/dist/js-joda-timezone-1970-2030.js +20 -113
  10. package/dist/js-joda-timezone-1970-2030.js.map +1 -1
  11. package/dist/js-joda-timezone-1970-2030.min.js +2 -2
  12. package/dist/js-joda-timezone-2012-2022.esm.js +20 -113
  13. package/dist/js-joda-timezone-2012-2022.esm.js.map +1 -1
  14. package/dist/js-joda-timezone-2012-2022.js +20 -113
  15. package/dist/js-joda-timezone-2012-2022.js.map +1 -1
  16. package/dist/js-joda-timezone-2012-2022.min.js +2 -2
  17. package/dist/js-joda-timezone-2017-2027.esm.js +20 -113
  18. package/dist/js-joda-timezone-2017-2027.esm.js.map +1 -1
  19. package/dist/js-joda-timezone-2017-2027.js +20 -113
  20. package/dist/js-joda-timezone-2017-2027.js.map +1 -1
  21. package/dist/js-joda-timezone-2017-2027.min.js +2 -2
  22. package/dist/js-joda-timezone-empty.esm.js +17 -110
  23. package/dist/js-joda-timezone-empty.esm.js.map +1 -1
  24. package/dist/js-joda-timezone-empty.js +17 -110
  25. package/dist/js-joda-timezone-empty.js.map +1 -1
  26. package/dist/js-joda-timezone-empty.min.js +2 -2
  27. package/dist/js-joda-timezone.esm.js +28 -121
  28. package/dist/js-joda-timezone.esm.js.map +1 -1
  29. package/dist/js-joda-timezone.js +28 -121
  30. package/dist/js-joda-timezone.js.map +1 -1
  31. package/dist/js-joda-timezone.min.js +2 -2
  32. package/package.json +6 -5
@@ -1,11 +1,11 @@
1
- //! @version @js-joda/timezone - 2.14.0-2022d-2017-2027
1
+ //! @version @js-joda/timezone - 2.15.1-2022e-2017-2027
2
2
  //! @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
3
3
  //! @copyright (c) 2007-present, Stephen Colebourne & Michael Nascimento Santos
4
4
  //! @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
5
5
 
6
6
  import { ZoneOffset, ZoneOffsetTransition, ZoneRules, LocalDateTime, Instant, DateTimeException, ZoneRulesProvider, use } from '@js-joda/core';
7
7
 
8
- var version = "2022d";
8
+ var version = "2022e";
9
9
  var zones$1 = [
10
10
  "Africa/Abidjan|GMT|0|0||48e5",
11
11
  "Africa/Nairobi|EAT|-30|0||47e5",
@@ -58,7 +58,7 @@ var zones$1 = [
58
58
  "Europe/Istanbul|+03|-30|0||13e6",
59
59
  "Antarctica/Troll|+00 +02|0 -20|01010101010101010101010|1T0p0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0|40",
60
60
  "Asia/Dhaka|+06|-60|0||16e6",
61
- "Asia/Amman|EET EEST|-20 -30|01010101010101010101010|1T2m0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00|25e5",
61
+ "Asia/Amman|EET EEST +03|-20 -30 -30|0101010101012|1T2m0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00|25e5",
62
62
  "Asia/Kamchatka|+12|-c0|0||18e4",
63
63
  "Asia/Dubai|+04|-40|0||39e5",
64
64
  "Asia/Beirut|EET EEST|-20 -30|01010101010101010101010|1T0m0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0|22e5",
@@ -67,7 +67,7 @@ var zones$1 = [
67
67
  "Asia/Chita|+09|-90|0||33e4",
68
68
  "Asia/Shanghai|CST|-80|0||23e6",
69
69
  "Asia/Colombo|+0530|-5u|0||22e5",
70
- "Asia/Damascus|EET EEST|-20 -30|01010101010101010101010|1T2m0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0|26e5",
70
+ "Asia/Damascus|EET EEST +03|-20 -30 -30|0101010101012|1T2m0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0|26e5",
71
71
  "Asia/Famagusta|+03 EET EEST|-30 -20 -30|0121212121212121212121|1Urd0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0|",
72
72
  "Asia/Gaza|EET EEST|-20 -30|01010101010101010101010|1SXX0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 XA0 1qp0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0|18e5",
73
73
  "Asia/Hong_Kong|HKT|-80|0||73e5",
@@ -864,19 +864,15 @@ var latest = {
864
864
  function _inheritsLoose(subClass, superClass) {
865
865
  subClass.prototype = Object.create(superClass.prototype);
866
866
  subClass.prototype.constructor = subClass;
867
-
868
867
  _setPrototypeOf(subClass, superClass);
869
868
  }
870
-
871
869
  function _setPrototypeOf(o, p) {
872
- _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
870
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
873
871
  o.__proto__ = p;
874
872
  return o;
875
873
  };
876
-
877
874
  return _setPrototypeOf(o, p);
878
875
  }
879
-
880
876
  function _unsupportedIterableToArray(o, minLen) {
881
877
  if (!o) return;
882
878
  if (typeof o === "string") return _arrayLikeToArray(o, minLen);
@@ -885,19 +881,14 @@ function _unsupportedIterableToArray(o, minLen) {
885
881
  if (n === "Map" || n === "Set") return Array.from(o);
886
882
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
887
883
  }
888
-
889
884
  function _arrayLikeToArray(arr, len) {
890
885
  if (len == null || len > arr.length) len = arr.length;
891
-
892
886
  for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
893
-
894
887
  return arr2;
895
888
  }
896
-
897
889
  function _createForOfIteratorHelperLoose(o, allowArrayLike) {
898
890
  var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
899
891
  if (it) return (it = it.call(o)).next.bind(it);
900
-
901
892
  if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
902
893
  if (it) o = it;
903
894
  var i = 0;
@@ -911,147 +902,110 @@ function _createForOfIteratorHelperLoose(o, allowArrayLike) {
911
902
  };
912
903
  };
913
904
  }
914
-
915
905
  throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
916
906
  }
917
907
 
918
908
  var MomentZoneRules = function (_ZoneRules) {
919
909
  _inheritsLoose(MomentZoneRules, _ZoneRules);
920
-
921
910
  function MomentZoneRules(tzdbInfo) {
922
911
  var _this;
923
-
924
912
  _this = _ZoneRules.call(this) || this;
925
913
  _this._tzdbInfo = tzdbInfo;
926
914
  _this._ldtUntils = new LDTUntils(_this._tzdbInfo.untils, _this._tzdbInfo.offsets);
927
915
  return _this;
928
916
  }
929
-
930
917
  var _proto = MomentZoneRules.prototype;
931
-
932
918
  _proto.isFixedOffset = function isFixedOffset() {
933
919
  return this._tzdbInfo.offsets.length === 1;
934
920
  };
935
-
936
921
  _proto.offsetOfInstant = function offsetOfInstant(instant) {
937
922
  var epochMilli = instant.toEpochMilli();
938
923
  return this.offsetOfEpochMilli(epochMilli);
939
924
  };
940
-
941
925
  _proto.offsetOfEpochMilli = function offsetOfEpochMilli(epochMilli) {
942
926
  var index = binarySearch(this._tzdbInfo.untils, epochMilli);
943
927
  return ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(index));
944
928
  };
945
-
946
929
  _proto.offsetOfLocalDateTime = function offsetOfLocalDateTime(localDateTime) {
947
930
  var info = this._offsetInfo(localDateTime);
948
-
949
931
  if (info instanceof ZoneOffsetTransition) {
950
932
  return info.offsetBefore();
951
933
  }
952
-
953
934
  return info;
954
935
  };
955
-
956
936
  _proto._offsetInfo = function _offsetInfo(localDateTime) {
957
937
  var index = ldtBinarySearch(this._ldtUntils, localDateTime);
958
938
  var offsetIndex = index >> 1;
959
-
960
939
  if (index % 2 === 1) {
961
940
  var ldtBefore = this._ldtUntils.get(Math.max(index - 1, 0));
962
-
963
941
  var ldtAfter = this._ldtUntils.get(Math.min(index, this._ldtUntils.size - 1));
964
-
965
942
  var offsetBefore = ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(offsetIndex));
966
943
  var offsetAfter = ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(Math.min(offsetIndex + 1, this._tzdbInfo.offsets.length - 1)));
967
-
968
944
  if (offsetBefore.compareTo(offsetAfter) > 0) {
969
945
  return ZoneOffsetTransition.of(ldtBefore, offsetBefore, offsetAfter);
970
946
  } else {
971
947
  return ZoneOffsetTransition.of(ldtAfter, offsetBefore, offsetAfter);
972
948
  }
973
949
  }
974
-
975
950
  return ZoneOffset.ofTotalSeconds(this._offsetByIndexInSeconds(offsetIndex));
976
951
  };
977
-
978
952
  _proto._offsetByIndexInSeconds = function _offsetByIndexInSeconds(index) {
979
953
  return -offsetInSeconds(this._tzdbInfo.offsets[index]);
980
954
  };
981
-
982
955
  _proto.validOffsets = function validOffsets(localDateTime) {
983
956
  var info = this._offsetInfo(localDateTime);
984
-
985
957
  if (info instanceof ZoneOffsetTransition) {
986
958
  return info.validOffsets();
987
959
  }
988
-
989
960
  return [info];
990
961
  };
991
-
992
962
  _proto.transition = function transition(localDateTime) {
993
963
  var info = this._offsetInfo(localDateTime);
994
-
995
964
  if (info instanceof ZoneOffsetTransition) {
996
965
  return info;
997
966
  }
998
-
999
967
  return null;
1000
968
  };
1001
-
1002
969
  _proto.standardOffset = function standardOffset(instant) {
1003
970
  notSupported('ZoneRules.standardOffset');
1004
971
  };
1005
-
1006
972
  _proto.daylightSavings = function daylightSavings(instant) {
1007
973
  notSupported('ZoneRules.daylightSavings');
1008
974
  };
1009
-
1010
975
  _proto.isDaylightSavings = function isDaylightSavings(instant) {
1011
976
  notSupported('ZoneRules.isDaylightSavings');
1012
977
  };
1013
-
1014
978
  _proto.isValidOffset = function isValidOffset(localDateTime, offset) {
1015
979
  return this.validOffsets(localDateTime).some(function (o) {
1016
980
  return o.equals(offset);
1017
981
  });
1018
982
  };
1019
-
1020
983
  _proto.nextTransition = function nextTransition(instant) {
1021
984
  notSupported('ZoneRules.nextTransition');
1022
985
  };
1023
-
1024
986
  _proto.previousTransition = function previousTransition(instant) {
1025
987
  notSupported('ZoneRules.previousTransition');
1026
988
  };
1027
-
1028
989
  _proto.transitions = function transitions() {
1029
990
  notSupported('ZoneRules.transitions');
1030
991
  };
1031
-
1032
992
  _proto.transitionRules = function transitionRules() {
1033
993
  notSupported('ZoneRules.transitionRules');
1034
994
  };
1035
-
1036
995
  _proto.equals = function equals(other) {
1037
996
  if (this === other) {
1038
997
  return true;
1039
998
  }
1040
-
1041
999
  if (other instanceof MomentZoneRules) {
1042
1000
  return this._tzdbInfo === other._tzdbInfo;
1043
1001
  }
1044
-
1045
1002
  return false;
1046
1003
  };
1047
-
1048
1004
  _proto.toString = function toString() {
1049
1005
  return this._tzdbInfo.name;
1050
1006
  };
1051
-
1052
1007
  return MomentZoneRules;
1053
1008
  }(ZoneRules);
1054
-
1055
1009
  var LDTUntils = function () {
1056
1010
  function LDTUntils(_tzdbUntils, tzdbOffsets) {
1057
1011
  this._tzdbUntils = _tzdbUntils;
@@ -1059,16 +1013,12 @@ var LDTUntils = function () {
1059
1013
  this._ldtUntils = [];
1060
1014
  this.size = this._tzdbUntils.length * 2;
1061
1015
  }
1062
-
1063
1016
  var _proto2 = LDTUntils.prototype;
1064
-
1065
1017
  _proto2._generateTupple = function _generateTupple(index) {
1066
1018
  var epochMillis = this._tzdbUntils[index];
1067
-
1068
1019
  if (epochMillis === Infinity) {
1069
1020
  return [LocalDateTime.MAX, LocalDateTime.MAX];
1070
1021
  }
1071
-
1072
1022
  var instant = Instant.ofEpochMilli(epochMillis);
1073
1023
  var offset1 = offsetInSeconds(this._tzdbOffsets[index]);
1074
1024
  var zone1 = ZoneOffset.ofTotalSeconds(-offset1);
@@ -1077,36 +1027,28 @@ var LDTUntils = function () {
1077
1027
  var offset2 = offsetInSeconds(this._tzdbOffsets[nextIndex]);
1078
1028
  var zone2 = ZoneOffset.ofTotalSeconds(-offset2);
1079
1029
  var ldt2 = LocalDateTime.ofInstant(instant, zone2);
1080
-
1081
1030
  if (offset1 > offset2) {
1082
1031
  return [ldt1, ldt2];
1083
1032
  } else {
1084
1033
  return [ldt2, ldt1];
1085
1034
  }
1086
1035
  };
1087
-
1088
1036
  _proto2._getTupple = function _getTupple(index) {
1089
1037
  if (this._ldtUntils[index] == null) {
1090
1038
  this._ldtUntils[index] = this._generateTupple(index);
1091
1039
  }
1092
-
1093
1040
  return this._ldtUntils[index];
1094
1041
  };
1095
-
1096
1042
  _proto2.get = function get(index) {
1097
1043
  var ldtTupple = this._getTupple(index >> 1);
1098
-
1099
1044
  return ldtTupple[index % 2];
1100
1045
  };
1101
-
1102
1046
  return LDTUntils;
1103
1047
  }();
1104
-
1105
1048
  function ldtBinarySearch(array, value) {
1106
1049
  var hi = array.size - 1,
1107
- lo = -1,
1108
- mid;
1109
-
1050
+ lo = -1,
1051
+ mid;
1110
1052
  while (hi - lo > 1) {
1111
1053
  if (!value.isBefore(array.get(mid = hi + lo >> 1))) {
1112
1054
  lo = mid;
@@ -1114,14 +1056,11 @@ function ldtBinarySearch(array, value) {
1114
1056
  hi = mid;
1115
1057
  }
1116
1058
  }
1117
-
1118
1059
  return hi;
1119
1060
  }
1120
-
1121
1061
  function offsetInSeconds(tzdbOffset) {
1122
1062
  return roundDown(+tzdbOffset * 60);
1123
1063
  }
1124
-
1125
1064
  function roundDown(r) {
1126
1065
  if (r < 0) {
1127
1066
  return Math.ceil(r);
@@ -1129,12 +1068,10 @@ function roundDown(r) {
1129
1068
  return Math.floor(r);
1130
1069
  }
1131
1070
  }
1132
-
1133
1071
  function binarySearch(array, value) {
1134
1072
  var hi = array.length - 1,
1135
- lo = -1,
1136
- mid;
1137
-
1073
+ lo = -1,
1074
+ mid;
1138
1075
  while (hi - lo > 1) {
1139
1076
  if (array[mid = hi + lo >> 1] <= value) {
1140
1077
  lo = mid;
@@ -1142,10 +1079,8 @@ function binarySearch(array, value) {
1142
1079
  hi = mid;
1143
1080
  }
1144
1081
  }
1145
-
1146
1082
  return hi;
1147
1083
  }
1148
-
1149
1084
  function notSupported(msg) {
1150
1085
  throw new Error("not supported: " + msg);
1151
1086
  }
@@ -1156,69 +1091,56 @@ function charCodeToInt(charCode) {
1156
1091
  } else if (charCode > 64) {
1157
1092
  return charCode - 29;
1158
1093
  }
1159
-
1160
1094
  return charCode - 48;
1161
1095
  }
1162
-
1163
1096
  function unpackBase60(string) {
1164
1097
  var i = 0,
1165
- parts = string.split('.'),
1166
- whole = parts[0],
1167
- fractional = parts[1] || '',
1168
- multiplier = 1,
1169
- num,
1170
- out = 0,
1171
- sign = 1;
1172
-
1098
+ parts = string.split('.'),
1099
+ whole = parts[0],
1100
+ fractional = parts[1] || '',
1101
+ multiplier = 1,
1102
+ num,
1103
+ out = 0,
1104
+ sign = 1;
1173
1105
  if (string.charCodeAt(0) === 45) {
1174
1106
  i = 1;
1175
1107
  sign = -1;
1176
1108
  }
1177
-
1178
1109
  for (i; i < whole.length; i++) {
1179
1110
  num = charCodeToInt(whole.charCodeAt(i));
1180
1111
  out = 60 * out + num;
1181
1112
  }
1182
-
1183
1113
  for (i = 0; i < fractional.length; i++) {
1184
1114
  multiplier = multiplier / 60;
1185
1115
  num = charCodeToInt(fractional.charCodeAt(i));
1186
1116
  out += num * multiplier;
1187
1117
  }
1188
-
1189
1118
  return out * sign;
1190
1119
  }
1191
-
1192
1120
  function arrayToInt(array) {
1193
1121
  for (var i = 0; i < array.length; i++) {
1194
1122
  array[i] = unpackBase60(array[i]);
1195
1123
  }
1196
1124
  }
1197
-
1198
1125
  function intToUntil(array, length) {
1199
1126
  for (var i = 0; i < length; i++) {
1200
1127
  array[i] = Math.round((array[i - 1] || 0) + array[i] * 60000);
1201
1128
  }
1202
-
1203
1129
  array[length - 1] = Infinity;
1204
1130
  }
1205
-
1206
1131
  function mapIndices(source, indices) {
1207
1132
  var out = [],
1208
- i;
1209
-
1133
+ i;
1210
1134
  for (i = 0; i < indices.length; i++) {
1211
1135
  out[i] = source[indices[i]];
1212
1136
  }
1213
-
1214
1137
  return out;
1215
1138
  }
1216
-
1217
1139
  function unpack(string) {
1218
1140
  var data = string.split('|'),
1219
- offsets = data[2].split(' '),
1220
- indices = data[3].split(''),
1221
- untils = data[4].split(' ');
1141
+ offsets = data[2].split(' '),
1142
+ indices = data[3].split(''),
1143
+ untils = data[4].split(' ');
1222
1144
  arrayToInt(offsets);
1223
1145
  arrayToInt(indices);
1224
1146
  arrayToInt(untils);
@@ -1239,37 +1161,28 @@ var zones = {};
1239
1161
  var links = {};
1240
1162
  var MomentZoneRulesProvider = function (_ZoneRulesProvider) {
1241
1163
  _inheritsLoose(MomentZoneRulesProvider, _ZoneRulesProvider);
1242
-
1243
1164
  function MomentZoneRulesProvider() {
1244
1165
  return _ZoneRulesProvider.apply(this, arguments) || this;
1245
1166
  }
1246
-
1247
1167
  MomentZoneRulesProvider.getRules = function getRules(zoneId) {
1248
1168
  var tzdbZoneInfo = zones[links[zoneId]];
1249
-
1250
1169
  if (tzdbZoneInfo == null) {
1251
1170
  throw new DateTimeException("Unknown time-zone ID: " + zoneId);
1252
1171
  }
1253
-
1254
1172
  return new MomentZoneRules(tzdbZoneInfo);
1255
1173
  };
1256
-
1257
1174
  MomentZoneRulesProvider.getAvailableZoneIds = function getAvailableZoneIds() {
1258
1175
  return AVAILABLE_ZONE_IDS;
1259
1176
  };
1260
-
1261
1177
  MomentZoneRulesProvider.getVersion = function getVersion() {
1262
1178
  return TZDB_VERSION;
1263
1179
  };
1264
-
1265
1180
  MomentZoneRulesProvider.getTzdbData = function getTzdbData() {
1266
1181
  return TZDB_DATA;
1267
1182
  };
1268
-
1269
1183
  MomentZoneRulesProvider.loadTzdbData = function loadTzdbData(packedJson) {
1270
1184
  TZDB_DATA = packedJson;
1271
1185
  TZDB_VERSION = packedJson.version;
1272
-
1273
1186
  for (var _iterator = _createForOfIteratorHelperLoose(packedJson.zones), _step; !(_step = _iterator()).done;) {
1274
1187
  var packedZoneInfo = _step.value;
1275
1188
  var tzdbZoneInfo = unpack(packedZoneInfo);
@@ -1277,7 +1190,6 @@ var MomentZoneRulesProvider = function (_ZoneRulesProvider) {
1277
1190
  zones[tzdbZoneInfo.name] = tzdbZoneInfo;
1278
1191
  links[tzdbZoneInfo.name] = tzdbZoneInfo.name;
1279
1192
  }
1280
-
1281
1193
  for (var _iterator2 = _createForOfIteratorHelperLoose(packedJson.links), _step2; !(_step2 = _iterator2()).done;) {
1282
1194
  var packedLink = _step2.value;
1283
1195
  var link = packedLink.split('|');
@@ -1285,7 +1197,6 @@ var MomentZoneRulesProvider = function (_ZoneRulesProvider) {
1285
1197
  links[link[1]] = link[0];
1286
1198
  }
1287
1199
  };
1288
-
1289
1200
  return MomentZoneRulesProvider;
1290
1201
  }(ZoneRulesProvider);
1291
1202
 
@@ -1294,17 +1205,13 @@ function getResolvedZoneId(ZoneId) {
1294
1205
  var resolvedTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
1295
1206
  return ZoneId.of(resolvedTimeZone);
1296
1207
  } catch (err) {}
1297
-
1298
1208
  return null;
1299
1209
  }
1300
-
1301
1210
  function extendSystemDefaultZoneId(ZoneId) {
1302
1211
  var resolvedZoneId = getResolvedZoneId(ZoneId);
1303
-
1304
1212
  if (resolvedZoneId == null) {
1305
1213
  return;
1306
1214
  }
1307
-
1308
1215
  ZoneId.systemDefault = function () {
1309
1216
  return resolvedZoneId;
1310
1217
  };