From: Maggie Pint Date: Sat, 30 Apr 2016 04:08:39 +0000 (+0100) Subject: deprecate isDSTShifted X-Git-Tag: 2.14.0~26^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecefea52e73f7257ee21d77f62e3ed68ba4ea9ae;p=thirdparty%2Fmoment.git deprecate isDSTShifted --- diff --git a/src/lib/moment/prototype.js b/src/lib/moment/prototype.js index 9832ed524..817889090 100644 --- a/src/lib/moment/prototype.js +++ b/src/lib/moment/prototype.js @@ -128,7 +128,6 @@ proto.local = setOffsetToLocal; proto.parseZone = setOffsetToParsedOffset; proto.hasAlignedHourOffset = hasAlignedHourOffset; proto.isDST = isDaylightSavingTime; -proto.isDSTShifted = isDaylightSavingTimeShifted; proto.isLocal = isLocal; proto.isUtcOffset = isUtcOffset; proto.isUtc = isUtc; @@ -145,5 +144,6 @@ proto.dates = deprecate('dates accessor is deprecated. Use date instead.', getS proto.months = deprecate('months accessor is deprecated. Use month instead', getSetMonth); proto.years = deprecate('years accessor is deprecated. Use year instead', getSetYear); proto.zone = deprecate('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/', getSetZone); +proto.isDSTShifted = deprecate('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information', isDaylightSavingTimeShifted); export default proto; diff --git a/src/test/moment/invalid.js b/src/test/moment/invalid.js index e10e6503f..4c416e252 100644 --- a/src/test/moment/invalid.js +++ b/src/test/moment/invalid.js @@ -37,7 +37,7 @@ test('invalid operations', function (assert) { invalid, valid = moment(); - test.expectedDeprecations('moment().min', 'moment().max'); + test.expectedDeprecations('moment().min', 'moment().max', 'isDSTShifted'); for (i = 0; i < invalids.length; ++i) { invalid = invalids[i];