fix really stupid mistake breaking all times

This commit is contained in:
flash 2017-03-22 22:02:50 +01:00
parent 9150d1b7cb
commit d5721db36b

View file

@ -22,7 +22,7 @@ namespace Sakura
}
public static Parse(date: Date, append: string = ' ago', none: string = 'Just now'): string {
var time: number = (date.getTime() - Date.now()) / 1000;
var time: number = (Date.now() - date.getTime()) / 1000;
if (time < 1) {
return none;