From 1562c4fe0ab10f2c5bd389e641518fb2b09e3159 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 11 Aug 2019 20:14:18 -0700 Subject: [PATCH] Use getFullYear instead of deprecated getYear. --- src/Miscellaneous/RelativeDates.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Miscellaneous/RelativeDates.coffee b/src/Miscellaneous/RelativeDates.coffee index 69c2353dd..fcb9c9067 100644 --- a/src/Miscellaneous/RelativeDates.coffee +++ b/src/Miscellaneous/RelativeDates.coffee @@ -31,7 +31,7 @@ RelativeDates = # diff is milliseconds from now. relative: (diff, now, date, abbrev) -> unit = if (number = (diff / $.DAY)) >= 1 - years = now.getYear() - date.getYear() + years = now.getFullYear() - date.getFullYear() months = now.getMonth() - date.getMonth() days = now.getDate() - date.getDate() if years > 1