JS: Simplify Date.isDst()
This commit is contained in:
parent
fbc7598a6b
commit
f0f9ab0eb7
|
@ -23,7 +23,7 @@
|
|||
* @returns {boolean}
|
||||
*/
|
||||
Date.prototype.isDst = function() {
|
||||
return (this.getStdTimezoneOffset() === this.getTimezoneOffset()) ? false : true;
|
||||
return this.getStdTimezoneOffset() !== this.getTimezoneOffset();
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue