From c393368c4e64730b204e6397a18b24c669e9d0c7 Mon Sep 17 00:00:00 2001 From: flashwave Date: Mon, 12 Dec 2016 21:47:21 +0100 Subject: [PATCH] fixed time ago calculator --- resources/assets/typescript/Sakura/TimeAgo.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/assets/typescript/Sakura/TimeAgo.ts b/resources/assets/typescript/Sakura/TimeAgo.ts index 10b98a9..00c425a 100644 --- a/resources/assets/typescript/Sakura/TimeAgo.ts +++ b/resources/assets/typescript/Sakura/TimeAgo.ts @@ -22,7 +22,7 @@ namespace Sakura } public static Parse(date: Date, append: string = ' ago', none: string = 'Just now'): string { - var time: number = (Date.now() - date.getTime()) / 1000; + var time: number = (date.getTime() - Date.now()) / 1000; if (time < 1) { return none;