@internationalized/date 3.5.1-nightly.4153 → 3.5.1-nightly.4160
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/import.mjs +3 -3
- package/dist/main.js +3 -3
- package/dist/main.js.map +1 -1
- package/dist/module.js +3 -3
- package/dist/module.js.map +1 -1
- package/package.json +2 -2
package/dist/module.js
CHANGED
|
@@ -576,7 +576,7 @@ function $11d87f3f76e88657$export$59c99f3515d3493f(ms, timeZone) {
|
|
|
576
576
|
if (timeZone === "UTC") return 0;
|
|
577
577
|
// Fast path: for local timezone after 1970, use native Date.
|
|
578
578
|
if (ms > 0 && timeZone === (0, $14e0f24ef4ac5c92$export$aa8b41735afcabd2)()) return new Date(ms).getTimezoneOffset() * -60000;
|
|
579
|
-
let { year: year
|
|
579
|
+
let { year: year, month: month, day: day, hour: hour, minute: minute, second: second } = $11d87f3f76e88657$var$getTimeZoneParts(ms, timeZone);
|
|
580
580
|
let utc = $11d87f3f76e88657$var$epochFromParts(year, month, day, hour, minute, second, 0);
|
|
581
581
|
return utc - Math.floor(ms / 1000) * 1000;
|
|
582
582
|
}
|
|
@@ -712,9 +712,9 @@ function $11d87f3f76e88657$export$4d0393e732857be5(date) {
|
|
|
712
712
|
}
|
|
713
713
|
function $11d87f3f76e88657$export$b21e0b124e224484(date, time) {
|
|
714
714
|
let hour = 0, minute = 0, second = 0, millisecond = 0;
|
|
715
|
-
if ("timeZone" in date) ({ hour: hour
|
|
715
|
+
if ("timeZone" in date) ({ hour: hour, minute: minute, second: second, millisecond: millisecond } = date);
|
|
716
716
|
else if ("hour" in date && !time) return date;
|
|
717
|
-
if (time) ({ hour: hour
|
|
717
|
+
if (time) ({ hour: hour, minute: minute, second: second, millisecond: millisecond } = time);
|
|
718
718
|
return new (0, $35ea8db9cb2ccb90$export$ca871e8dbb80966f)(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
|
|
719
719
|
}
|
|
720
720
|
function $11d87f3f76e88657$export$d33f79e3ffc3dc83(dateTime) {
|