Fix time ago conversion occurring in the wrong direction

thrimbletrimmer-solid
ElementalAlchemist 1 week ago
parent 3e4f52e9ef
commit e6aaddb9eb

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

Loading…
Cancel
Save