fix really stupid mistake breaking all times
This commit is contained in:
parent
9150d1b7cb
commit
d5721db36b
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue