@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.
@@ -3826,7 +3826,7 @@ var _default = exports["default"] = SvgFile;
3826
3826
 
3827
3827
 
3828
3828
  exports.__esModule = true;
3829
- exports.TIME_UNITS = exports.FORMAT_TOKENS = exports.DEFAULT_TIMEZONE = void 0;
3829
+ exports.TIME_UNITS = exports.FORMAT_TOKENS = void 0;
3830
3830
  exports.dayjsToMoment = dayjsToMoment;
3831
3831
  exports["default"] = void 0;
3832
3832
  exports.hasMomentTimezoneSupport = hasMomentTimezoneSupport;
@@ -4022,8 +4022,6 @@ const FORMAT_TOKENS = exports.FORMAT_TOKENS = {
4022
4022
  MONTH_FULL: 'MMMM',
4023
4023
  YEAR: 'YYYY',
4024
4024
  YEAR_SHORT: 'YY',
4025
- // Cap UI datetime picker format (DD-MM-YYYY | HH:mm)
4026
- DATE_TIME: 'DD-MM-YYYY | HH:mm',
4027
4025
  // Localized formats
4028
4026
  DATE_LOCALIZED_SHORT: 'l',
4029
4027
  DATETIME_LOCALIZED_SHORT: 'll',
@@ -4034,7 +4032,6 @@ const FORMAT_TOKENS = exports.FORMAT_TOKENS = {
4034
4032
  DATETIME_LOCALIZED_LONG_TIME: 'LLL',
4035
4033
  DATETIME_LOCALIZED_LONG_TIME_WEEKDAY: 'LLLL'
4036
4034
  };
4037
- const DEFAULT_TIMEZONE = exports.DEFAULT_TIMEZONE = 'Asia/Kolkata';
4038
4035
  function logDevError(message, error) {
4039
4036
  if (false) // removed by dead control flow
4040
4037
  {}
@@ -4115,10 +4112,7 @@ function momentToDayjs(value) {
4115
4112
  const tz = value.tz();
4116
4113
  if (tz) {
4117
4114
  // Has a named timezone - preserve it
4118
- // dayjs.utc(date) is required here: dayjs(date) anchors to the system local timezone,
4119
- // causing .tz() to only re-label without converting hours. dayjs.utc(date) creates a
4120
- // UTC-mode dayjs, which .tz() correctly converts to the target timezone for display.
4121
- dayjsObj = _dayjs.default.utc(date).tz(tz);
4115
+ dayjsObj = (0, _dayjs.default)(date).tz(tz);
4122
4116
 
4123
4117
  // WORKAROUND: dayjs-timezone-iana-plugin doesn't persist timezone name in standard way
4124
4118
  // Store it manually in $x for round-trip conversion fidelity