pict 1.0.118 → 1.0.119
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/pict.compatible.js
CHANGED
|
@@ -1252,13 +1252,14 @@ var tmpChunkSize=typeof pChunkSize=='number'?pChunkSize:0;var tmpChunkCache=type
|
|
|
1252
1252
|
var tmpDateParts=pISOString.split(/\D+/);// Set up a date object with the current time.
|
|
1253
1253
|
var tmpReturnDate=new Date();// Track the number of hours we need to adjust the date by based on the timezone.
|
|
1254
1254
|
var tmpTimeZoneOffsetInHours=0;// Track the number of minutes we need to adjust the date by based on the timezone.
|
|
1255
|
-
var tmpTimeZoneOffsetInMinutes=0;//
|
|
1255
|
+
var tmpTimeZoneOffsetInMinutes=0;// This fixes an inconsistency with constructing the date programmatically.
|
|
1256
|
+
tmpReturnDate.setUTCDate(1);// Manually parse the parts of the string and set each part for the
|
|
1256
1257
|
// date. Note: Using the UTC versions of these functions is necessary
|
|
1257
1258
|
// because we're manually adjusting for time zones stored in the
|
|
1258
1259
|
// string.
|
|
1259
1260
|
tmpReturnDate.setUTCFullYear(parseInt(tmpDateParts[0]));// The month numbers are one "off" from what normal humans would expect
|
|
1260
1261
|
// because January == 0.
|
|
1261
|
-
tmpReturnDate.setUTCMonth(parseInt(tmpDateParts[1]-1)
|
|
1262
|
+
tmpReturnDate.setUTCMonth(parseInt(tmpDateParts[1])-1);tmpReturnDate.setUTCDate(parseInt(tmpDateParts[2]));// Set the time parts of the date object.
|
|
1262
1263
|
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.
|
|
1263
1264
|
if(tmpDateParts[7]||tmpDateParts[8]){// If there's a value for the minutes offset.
|
|
1264
1265
|
if(tmpDateParts[8]){// Convert the minutes value into an hours value.
|