Comparing version 1.21.1 to 1.21.2
{ | ||
"name": "luxon", | ||
"version": "1.21.1", | ||
"version": "1.21.2", | ||
"description": "Immutable date wrapper", | ||
@@ -5,0 +5,0 @@ "author": "Isaac Cambron", |
@@ -159,4 +159,16 @@ import { formatOffset, parseZoneInfo, isUndefined, ianaRegex, objToLocalTS } from "../impl/util.js"; | ||
? partsOffset(dtf, date) | ||
: hackyOffset(dtf, date); | ||
const asUTC = objToLocalTS({ year, month, day, hour, minute, second, millisecond: 0 }); | ||
: hackyOffset(dtf, date), | ||
// work around https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat | ||
adjustedHour = hour === 24 ? 0 : hour; | ||
const asUTC = objToLocalTS({ | ||
year, | ||
month, | ||
day, | ||
hour: adjustedHour, | ||
minute, | ||
second, | ||
millisecond: 0 | ||
}); | ||
let asTS = date.valueOf(); | ||
@@ -163,0 +175,0 @@ asTS -= asTS % 1000; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2898385
33650