Rewrote date checking to allow for future expiry of signed urls.