@capillarytech/blaze-ui 5.1.18 → 5.1.19
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/CapCollapsibleNavbar/index.js +4 -1
- package/CapCollapsibleNavbar/index.js.map +1 -1
- package/CapCondition/index.js +4 -1
- package/CapCondition/index.js.map +1 -1
- package/CapDatePicker/index.js +4 -1
- package/CapDatePicker/index.js.map +1 -1
- package/CapDateTimePicker/index.d.ts.map +1 -1
- package/CapDateTimePicker/index.js +19 -4
- package/CapDateTimePicker/index.js.map +1 -1
- package/CapDateTimePicker/messages.d.ts +8 -0
- package/CapDateTimePicker/messages.d.ts.map +1 -1
- package/CapDateTimeRangePicker/index.js +4 -1
- package/CapDateTimeRangePicker/index.js.map +1 -1
- package/CapEventCalendar/index.js +4 -1
- package/CapEventCalendar/index.js.map +1 -1
- package/CapLanguageProvider/index.js +4 -1
- package/CapLanguageProvider/index.js.map +1 -1
- package/CapNotificationDropdown/index.js +4 -1
- package/CapNotificationDropdown/index.js.map +1 -1
- package/CapTimePicker/index.js +4 -1
- package/CapTimePicker/index.js.map +1 -1
- package/index.js +19 -4
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/utils/dayjs.d.ts.map +1 -1
package/CapDatePicker/index.js
CHANGED
|
@@ -4104,7 +4104,10 @@ function momentToDayjs(value) {
|
|
|
4104
4104
|
const tz = value.tz();
|
|
4105
4105
|
if (tz) {
|
|
4106
4106
|
// Has a named timezone - preserve it
|
|
4107
|
-
|
|
4107
|
+
// dayjs.utc(date) is required here: dayjs(date) anchors to the system local timezone,
|
|
4108
|
+
// causing .tz() to only re-label without converting hours. dayjs.utc(date) creates a
|
|
4109
|
+
// UTC-mode dayjs, which .tz() correctly converts to the target timezone for display.
|
|
4110
|
+
dayjsObj = _dayjs.default.utc(date).tz(tz);
|
|
4108
4111
|
|
|
4109
4112
|
// WORKAROUND: dayjs-timezone-iana-plugin doesn't persist timezone name in standard way
|
|
4110
4113
|
// Store it manually in $x for round-trip conversion fidelity
|