fable 3.0.80 → 3.0.81
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.compatible.js +3 -2
- package/dist/fable.compatible.min.js +1 -1
- package/dist/fable.compatible.min.js.map +1 -1
- package/dist/fable.js +3 -2
- package/dist/fable.min.js +1 -1
- package/dist/fable.min.js.map +1 -1
- package/package.json +1 -1
- package/source/services/Fable-Service-Utility.js +5 -1
- package/test/Utility_tests.js +1 -0
package/dist/fable.compatible.js
CHANGED
|
@@ -3320,13 +3320,14 @@ var tmpChunkSize=typeof pChunkSize=='number'?pChunkSize:0;var tmpChunkCache=type
|
|
|
3320
3320
|
var tmpDateParts=pISOString.split(/\D+/);// Set up a date object with the current time.
|
|
3321
3321
|
var tmpReturnDate=new Date();// Track the number of hours we need to adjust the date by based on the timezone.
|
|
3322
3322
|
var tmpTimeZoneOffsetInHours=0;// Track the number of minutes we need to adjust the date by based on the timezone.
|
|
3323
|
-
var tmpTimeZoneOffsetInMinutes=0;//
|
|
3323
|
+
var tmpTimeZoneOffsetInMinutes=0;// This fixes an inconsistency with constructing the date programmatically.
|
|
3324
|
+
tmpReturnDate.setUTCDate(1);// 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)
|
|
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.
|