@internationalized/date 3.5.1-nightly.4149 → 3.5.1-nightly.4157
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/import.mjs
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) {
|
package/dist/main.js
CHANGED
|
@@ -640,7 +640,7 @@ function $4ae0260a69729f1d$export$59c99f3515d3493f(ms, timeZone) {
|
|
|
640
640
|
if (timeZone === "UTC") return 0;
|
|
641
641
|
// Fast path: for local timezone after 1970, use native Date.
|
|
642
642
|
if (ms > 0 && timeZone === (0, $1f0f7ebf1ae6c530$export$aa8b41735afcabd2)()) return new Date(ms).getTimezoneOffset() * -60000;
|
|
643
|
-
let { year: year
|
|
643
|
+
let { year: year, month: month, day: day, hour: hour, minute: minute, second: second } = $4ae0260a69729f1d$var$getTimeZoneParts(ms, timeZone);
|
|
644
644
|
let utc = $4ae0260a69729f1d$var$epochFromParts(year, month, day, hour, minute, second, 0);
|
|
645
645
|
return utc - Math.floor(ms / 1000) * 1000;
|
|
646
646
|
}
|
|
@@ -776,9 +776,9 @@ function $4ae0260a69729f1d$export$4d0393e732857be5(date) {
|
|
|
776
776
|
}
|
|
777
777
|
function $4ae0260a69729f1d$export$b21e0b124e224484(date, time) {
|
|
778
778
|
let hour = 0, minute = 0, second = 0, millisecond = 0;
|
|
779
|
-
if ("timeZone" in date) ({ hour: hour
|
|
779
|
+
if ("timeZone" in date) ({ hour: hour, minute: minute, second: second, millisecond: millisecond } = date);
|
|
780
780
|
else if ("hour" in date && !time) return date;
|
|
781
|
-
if (time) ({ hour: hour
|
|
781
|
+
if (time) ({ hour: hour, minute: minute, second: second, millisecond: millisecond } = time);
|
|
782
782
|
return new (0, $625ad1e1f4c43bc1$export$ca871e8dbb80966f)(date.calendar, date.era, date.year, date.month, date.day, hour, minute, second, millisecond);
|
|
783
783
|
}
|
|
784
784
|
function $4ae0260a69729f1d$export$d33f79e3ffc3dc83(dateTime) {
|