I have to do the logic for when to renew a refresh token and somehow I do not get the correct values.
console.log(this._accessToken[".expires"]);
console.log(Date.parse(this._accessToken[".expires"]) > new Date().getTime());
results in
Wed, 16 Oct 2013 15:42:53 GMT
true
It should return false.
How to i make the new Date() be in the same timezone as the string. (I assume the string has all the information it need to tell if the current time is before or after it).