odaptos_design_system 1.4.319 → 1.4.320

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.
@@ -15115,10 +15115,10 @@ const TimeInterval = ({
15115
15115
  const hours = Math.floor(seconds / 3600);
15116
15116
  const minutes = Math.floor(seconds % 3600 / 60);
15117
15117
  const secs = seconds % 60;
15118
- const hoursStr = hours.toString().padStart(2, '0');
15119
- const minutesStr = minutes.toString().padStart(2, '0');
15120
- const secondsStr = secs.toString().padStart(2, '0');
15121
- if (hours > 0) return `${hoursStr}:${minutesStr}:${secondsStr}`;else return `${minutesStr}:${secondsStr}`;
15118
+ const hoursStr = Math.round(hours).toString().padStart(2, '0');
15119
+ const minutesStr = Math.round(minutes).toString().padStart(2, '0');
15120
+ const secondsStr = Math.round(secs).toString().padStart(2, '0');
15121
+ if (hours !== 0) return `${hoursStr}:${minutesStr}:${secondsStr}`;else return `${minutesStr}:${secondsStr}`;
15122
15122
  };
15123
15123
  let displayFormattedTime = formatTime(startTime);
15124
15124
  if (endTime) {