We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c396fa1 commit 6fd7945Copy full SHA for 6fd7945
1 file changed
app/src/lib/format-relative.ts
@@ -17,7 +17,7 @@ const getRelativeFormatter = mem(
17
export function formatRelative(ms: number) {
18
const formatter = getRelativeFormatter('en-US', { numeric: 'auto' })
19
20
- const sign = ms < 0 ? 1 : -1
+ const sign = ms < 0 ? -1 : 0
21
22
// Lifted and adopted from
23
// https://github.com/github/time-elements/blob/428b02c9/src/relative-time.ts#L57
0 commit comments