fable 3.0.80 → 3.0.82

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.
package/dist/fable.js CHANGED
@@ -3320,13 +3320,14 @@ isoStringToDate(pISOString){// Split the string into an array based on the digit
3320
3320
  let tmpDateParts=pISOString.split(/\D+/);// Set up a date object with the current time.
3321
3321
  let tmpReturnDate=new Date();// Track the number of hours we need to adjust the date by based on the timezone.
3322
3322
  let tmpTimeZoneOffsetInHours=0;// Track the number of minutes we need to adjust the date by based on the timezone.
3323
- let tmpTimeZoneOffsetInMinutes=0;// Manually parse the parts of the string and set each part for the
3323
+ let tmpTimeZoneOffsetInMinutes=0;// This fixes an inconsistency with constructing the date programmatically.
3324
+ tmpReturnDate.setUTCDate(1);tmpReturnDate.setUTCMonth(1);tmpReturnDate.setUTCHours(0);tmpReturnDate.setUTCMinutes(0);tmpReturnDate.setUTCSeconds(0);tmpReturnDate.setUTCMilliseconds(0);// Manually parse the parts of the string and set each part for the
3324
3325
  // date. Note: Using the UTC versions of these functions is necessary
3325
3326
  // because we're manually adjusting for time zones stored in the
3326
3327
  // string.
3327
3328
  tmpReturnDate.setUTCFullYear(parseInt(tmpDateParts[0]));// The month numbers are one "off" from what normal humans would expect
3328
3329
  // because January == 0.
3329
- tmpReturnDate.setUTCMonth(parseInt(tmpDateParts[1]-1));tmpReturnDate.setUTCDate(parseInt(tmpDateParts[2]));// Set the time parts of the date object.
3330
+ tmpReturnDate.setUTCMonth(parseInt(tmpDateParts[1])-1);tmpReturnDate.setUTCDate(parseInt(tmpDateParts[2]));// Set the time parts of the date object.
3330
3331
  tmpReturnDate.setUTCHours(parseInt(tmpDateParts[3]));tmpReturnDate.setUTCMinutes(parseInt(tmpDateParts[4]));tmpReturnDate.setUTCSeconds(parseInt(tmpDateParts[5]));tmpReturnDate.setUTCMilliseconds(parseInt(tmpDateParts[6]));// If there's a value for either the hours or minutes offset.
3331
3332
  if(tmpDateParts[7]||tmpDateParts[8]){// If there's a value for the minutes offset.
3332
3333
  if(tmpDateParts[8]){// Convert the minutes value into an hours value.