mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-04-08 17:15:08 +02:00
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…
x
Reference in New Issue
Block a user