@capillarytech/blaze-ui 5.1.19 → 5.2.0

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.
@@ -477,7 +477,7 @@ module.exports = isObject;
477
477
 
478
478
 
479
479
  exports.__esModule = true;
480
- exports.TIME_UNITS = exports.FORMAT_TOKENS = exports.DEFAULT_TIMEZONE = void 0;
480
+ exports.TIME_UNITS = exports.FORMAT_TOKENS = void 0;
481
481
  exports.dayjsToMoment = dayjsToMoment;
482
482
  exports["default"] = void 0;
483
483
  exports.hasMomentTimezoneSupport = hasMomentTimezoneSupport;
@@ -673,8 +673,6 @@ const FORMAT_TOKENS = exports.FORMAT_TOKENS = {
673
673
  MONTH_FULL: 'MMMM',
674
674
  YEAR: 'YYYY',
675
675
  YEAR_SHORT: 'YY',
676
- // Cap UI datetime picker format (DD-MM-YYYY | HH:mm)
677
- DATE_TIME: 'DD-MM-YYYY | HH:mm',
678
676
  // Localized formats
679
677
  DATE_LOCALIZED_SHORT: 'l',
680
678
  DATETIME_LOCALIZED_SHORT: 'll',
@@ -685,7 +683,6 @@ const FORMAT_TOKENS = exports.FORMAT_TOKENS = {
685
683
  DATETIME_LOCALIZED_LONG_TIME: 'LLL',
686
684
  DATETIME_LOCALIZED_LONG_TIME_WEEKDAY: 'LLLL'
687
685
  };
688
- const DEFAULT_TIMEZONE = exports.DEFAULT_TIMEZONE = 'Asia/Kolkata';
689
686
  function logDevError(message, error) {
690
687
  if (false) // removed by dead control flow
691
688
  {}
@@ -766,10 +763,7 @@ function momentToDayjs(value) {
766
763
  const tz = value.tz();
767
764
  if (tz) {
768
765
  // Has a named timezone - preserve it
769
- // dayjs.utc(date) is required here: dayjs(date) anchors to the system local timezone,
770
- // causing .tz() to only re-label without converting hours. dayjs.utc(date) creates a
771
- // UTC-mode dayjs, which .tz() correctly converts to the target timezone for display.
772
- dayjsObj = _dayjs.default.utc(date).tz(tz);
766
+ dayjsObj = (0, _dayjs.default)(date).tz(tz);
773
767
 
774
768
  // WORKAROUND: dayjs-timezone-iana-plugin doesn't persist timezone name in standard way
775
769
  // Store it manually in $x for round-trip conversion fidelity