You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Date.now=function(){returnnewDate();};Date.today=function(){returnDate.now().clearTime();};Date.prototype._orient=+1;Date.prototype.next=function(){this._orient=+1;returnthis;};Date.prototype.last=Date.prototype.prev=Date.prototype.previous=function(){this._orient=-1;returnthis;};Date.prototype._is=false;Date.prototype.is=function(){this._is=true;returnthis;};Number.prototype._dateElement="day";Number.prototype.fromNow=function(){varc={};c[this._dateElement]=this;returnDate.now().add(c);};Number.prototype.ago=function(){varc={};c[this._dateElement]=this*-1;returnDate.now().add(c);};(function(){var$D=Date.prototype,$N=Number.prototype;vardx=("sunday monday tuesday wednesday thursday friday saturday").split(/\s/),mx=("january february march april may june july august september october november december").split(/\s/),px=("Millisecond Second Minute Hour Day Week Month Year").split(/\s/),de;vardf=function(n){returnfunction(){if(this._is){this._is=false;returnthis.getDay()==n;}
This appears to be a patched version of date.js that doesn't have the issue...but I don't know who is updating or maintaining date.js.
date.js (in daterangepicker.jQuery.js) overrides Date.now to be new Date() (type object) instead of current timestamp (type number).
This change of a browser's API breaks other modern javascript libraries that might be included on the page.
cdf/bi-platform-v2-plugin/cdf/js/daterangepicker/daterangepicker.jQuery.js
Line 390 in cf0a3f3
This appears to be a patched version of date.js that doesn't have the issue...but I don't know who is updating or maintaining date.js.
http://cdnjs.cloudflare.com/ajax/libs/datejs/1.0/date.min.js
I went ahead and made the change. Pull request is here:
#135
The text was updated successfully, but these errors were encountered: