Fix time ago conversion occurring in the wrong direction

ElementalAlchemist 2 weeks ago
parent 0fd6a09b1c
commit 5143d15f68

@ -77,7 +77,7 @@ export function dateTimeFromTimeAgo(timeAgo: string): DateTime | null {
} }
const now = DateTime.utc(); const now = DateTime.utc();
return now.plus(mathObj); return now.minus(mathObj);
} }
export function timeAgoFromDateTime(dateTime: DateTime): string { export function timeAgoFromDateTime(dateTime: DateTime): string {

Loading…
Cancel
Save