Skip to content

Truncate past relative times towards zero

Latest

Choose a tag to compare

@github-actions github-actions released this 27 Nov 09:39
Immutable release. Only release title and notes can be modified.

3.0.2 (2026-11-27)

Bug fixes

  • formatRelativeTime() truncates past time diffs towards zero, as it does for future diffs. 61 minutes ago now gives 1 hour ago, and 59.5 seconds ago gives 59 seconds ago. Before, past values were rounded away from zero, for example 2 hours ago. (#156, closes #154)

Full changelog: v3.0.1...v3.0.2