diff --git a/openmetadata-ui/src/main/resources/ui/src/utils/date-time/DateTimeUtils.ts b/openmetadata-ui/src/main/resources/ui/src/utils/date-time/DateTimeUtils.ts index 731779e0074f..cf37f23508da 100644 --- a/openmetadata-ui/src/main/resources/ui/src/utils/date-time/DateTimeUtils.ts +++ b/openmetadata-ui/src/main/resources/ui/src/utils/date-time/DateTimeUtils.ts @@ -340,10 +340,10 @@ export const convertMillisecondsToHumanReadableFormat = ( showMilliseconds = false, prependForNegativeValue = '-' ): string => { - // Handle zero and very small positive values + // Treat zero and sub-second durations as "0s" when milliseconds are hidden if ( timestamp === 0 || - (!showMilliseconds && timestamp > 0 && timestamp < 1000) + (!showMilliseconds && timestamp > 0 && timestamp <= 1000) ) { return '0s'; }