JS: Simplify Date.isDst()

This commit is contained in:
Eric Lippmann 2018-11-15 09:28:40 +01:00
parent fbc7598a6b
commit f0f9ab0eb7
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@
* @returns {boolean}
*/
Date.prototype.isDst = function() {
return (this.getStdTimezoneOffset() === this.getTimezoneOffset()) ? false : true;
return this.getStdTimezoneOffset() !== this.getTimezoneOffset();
};
/**