@syncfusion/ej2-base 31.2.4 → 31.2.5

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.
@@ -6183,6 +6183,29 @@ class DateParser {
6183
6183
  return null;
6184
6184
  }
6185
6185
  }
6186
+ if (key === 'hour') {
6187
+ var is12h = options.hour12;
6188
+ if (is12h) {
6189
+ if (tValue < 1 || tValue > 12) {
6190
+ return null;
6191
+ }
6192
+ }
6193
+ else {
6194
+ if (tValue < 0 || tValue > 23) {
6195
+ return null;
6196
+ }
6197
+ }
6198
+ }
6199
+ else if (key === 'minute' || key === 'second') {
6200
+ if (tValue < 0 || tValue > 59) {
6201
+ return null;
6202
+ }
6203
+ }
6204
+ else if (key === 'milliseconds') {
6205
+ if (tValue < 0 || tValue > 999) {
6206
+ return null;
6207
+ }
6208
+ }
6186
6209
  res[`${timeSetter$1[`${key}`]}`](tValue);
6187
6210
  }
6188
6211
  }