From: David Reiman Date: Fri, 2 Oct 2015 17:28:29 +0000 (-0700) Subject: Pass linter X-Git-Tag: 2.11.0~41^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03b2954f9bcf041e60284302efc79b0f280d2357;p=thirdparty%2Fmoment.git Pass linter --- diff --git a/src/lib/create/date-from-array.js b/src/lib/create/date-from-array.js index 6c8053c5e..fd0fe524c 100644 --- a/src/lib/create/date-from-array.js +++ b/src/lib/create/date-from-array.js @@ -4,7 +4,7 @@ export function createDate (y, m, d, h, M, s, ms) { var date = new Date(y, m, d, h, M, s, ms); //the date constructor doesn't accept years < 1970 - if (y < 1970 && isFinite(date.getYear()) ) { + if (y < 1970 && isFinite(date.getYear())) { date.setFullYear(y); } return date;