@carbon/charts-vue 1.5.0 → 1.5.1

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/charts-vue.umd.js CHANGED
@@ -12032,7 +12032,7 @@ function formatTick(tick, i, allTicks, interval, timeScaleOptions) {
12032
12032
  // if the interval, and the timestamp includes milliseconds value
12033
12033
  if (interval === '15seconds' && date.getMilliseconds() !== 0) {
12034
12034
  // show milliseconds in tick
12035
- formatString = formatString.replace('pp', 'h:m:s.SSS a');
12035
+ formatString = formatString.replace('pp', 'h:mm:ss.SSS a');
12036
12036
  }
12037
12037
  var locale = timeScaleOptions.localeObject;
12038
12038
  return format_format(date, formatString, { locale: locale });
@@ -24250,7 +24250,9 @@ var tooltip_Tooltip = /** @class */ (function (_super) {
24250
24250
  }
24251
24251
  try {
24252
24252
  // it's a correct ISO format Date string
24253
- return format_format(Date.parse(value), 'MMM d, yyyy');
24253
+ if (typeof value === 'string' && (/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/.test(value))) {
24254
+ return format_format(Date.parse(value), 'MMM d, yyyy');
24255
+ }
24254
24256
  }
24255
24257
  catch (e) {
24256
24258
  // not a valid ISO format string