Skip to content

Commit 762add9

Browse files
committed
fix: round seconds in relative time format
Signed-off-by: Pedro Lamas <[email protected]>
1 parent 490cbf6 commit 762add9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util/date-time-formatters.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ const dateTimeFormatters = (getDefaultDateFormat: GetDefaultDateTimeFormatFuncti
176176
]
177177
: [
178178
'second',
179-
seconds
179+
Math.round(seconds)
180180
]
181181

182182
return instance.formatRelativeTime(unitValue, unit, options)

0 commit comments

Comments
 (0)