@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.
@@ -4226,7 +4226,7 @@ var _default = exports["default"] = SvgFile;
4226
4226
 
4227
4227
 
4228
4228
  exports.__esModule = true;
4229
- exports.TIME_UNITS = exports.FORMAT_TOKENS = exports.DEFAULT_TIMEZONE = void 0;
4229
+ exports.TIME_UNITS = exports.FORMAT_TOKENS = void 0;
4230
4230
  exports.dayjsToMoment = dayjsToMoment;
4231
4231
  exports["default"] = void 0;
4232
4232
  exports.hasMomentTimezoneSupport = hasMomentTimezoneSupport;
@@ -4422,8 +4422,6 @@ const FORMAT_TOKENS = exports.FORMAT_TOKENS = {
4422
4422
  MONTH_FULL: 'MMMM',
4423
4423
  YEAR: 'YYYY',
4424
4424
  YEAR_SHORT: 'YY',
4425
- // Cap UI datetime picker format (DD-MM-YYYY | HH:mm)
4426
- DATE_TIME: 'DD-MM-YYYY | HH:mm',
4427
4425
  // Localized formats
4428
4426
  DATE_LOCALIZED_SHORT: 'l',
4429
4427
  DATETIME_LOCALIZED_SHORT: 'll',
@@ -4434,7 +4432,6 @@ const FORMAT_TOKENS = exports.FORMAT_TOKENS = {
4434
4432
  DATETIME_LOCALIZED_LONG_TIME: 'LLL',
4435
4433
  DATETIME_LOCALIZED_LONG_TIME_WEEKDAY: 'LLLL'
4436
4434
  };
4437
- const DEFAULT_TIMEZONE = exports.DEFAULT_TIMEZONE = 'Asia/Kolkata';
4438
4435
  function logDevError(message, error) {
4439
4436
  if (false) // removed by dead control flow
4440
4437
  {}
@@ -4515,10 +4512,7 @@ function momentToDayjs(value) {
4515
4512
  const tz = value.tz();
4516
4513
  if (tz) {
4517
4514
  // Has a named timezone - preserve it
4518
- // dayjs.utc(date) is required here: dayjs(date) anchors to the system local timezone,
4519
- // causing .tz() to only re-label without converting hours. dayjs.utc(date) creates a
4520
- // UTC-mode dayjs, which .tz() correctly converts to the target timezone for display.
4521
- dayjsObj = _dayjs.default.utc(date).tz(tz);
4515
+ dayjsObj = (0, _dayjs.default)(date).tz(tz);
4522
4516
 
4523
4517
  // WORKAROUND: dayjs-timezone-iana-plugin doesn't persist timezone name in standard way
4524
4518
  // Store it manually in $x for round-trip conversion fidelity