Comparing version 2.1.0 to 2.1.1
{ | ||
"name": "luxon", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Immutable date wrapper", | ||
@@ -5,0 +5,0 @@ "author": "Isaac Cambron", |
@@ -12,3 +12,3 @@ import DateTime from "./datetime.js"; | ||
const VERSION = "2.1.0"; | ||
const VERSION = "2.1.1"; | ||
@@ -15,0 +15,0 @@ export { |
@@ -10,3 +10,3 @@ import { formatOffset, parseZoneInfo, isUndefined, ianaRegex, objToLocalTS } from "../impl/util.js"; | ||
dtfCache[zone] = new Intl.DateTimeFormat("en-US", { | ||
hourCycle: "h23", | ||
hour12: false, | ||
timeZone: zone, | ||
@@ -156,2 +156,5 @@ year: "numeric", | ||
// because we're using hour12 and https://bugs.chromium.org/p/chromium/issues/detail?id=1025564&can=2&q=%2224%3A00%22%20datetimeformat | ||
const adjustedHour = hour === 24 ? 0 : hour; | ||
const asUTC = objToLocalTS({ | ||
@@ -161,3 +164,3 @@ year, | ||
day, | ||
hour, | ||
hour: adjustedHour, | ||
minute, | ||
@@ -164,0 +167,0 @@ second, |
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
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
3664377
40180