Skip to content

Commit 6fd7945

Browse files
committed
Math was never my strong suit
1 parent c396fa1 commit 6fd7945

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/lib/format-relative.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const getRelativeFormatter = mem(
1717
export function formatRelative(ms: number) {
1818
const formatter = getRelativeFormatter('en-US', { numeric: 'auto' })
1919

20-
const sign = ms < 0 ? 1 : -1
20+
const sign = ms < 0 ? -1 : 0
2121

2222
// Lifted and adopted from
2323
// https://github.com/github/time-elements/blob/428b02c9/src/relative-time.ts#L57

0 commit comments

Comments
 (0)