]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
deprecate isDSTShifted
authorMaggie Pint <maggiepint@gmail.com>
Sat, 30 Apr 2016 04:08:39 +0000 (05:08 +0100)
committerIskren Chernev <iskren.chernev@gmail.com>
Tue, 14 Jun 2016 09:22:06 +0000 (02:22 -0700)
src/lib/moment/prototype.js
src/test/moment/invalid.js

index 9832ed5248605903bc17cfb99adea1d1518464c9..8178890900171d8fa5a07a38dab05a2bf8bf5192 100644 (file)
@@ -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;
index e10e6503fd180d96cafb4b1bedf1102a1ee1db43..4c416e252dc2182d6bb8306ae91fd32dab872db8 100644 (file)
@@ -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];