twilio / twilio-python

A Python module for communicating with the Twilio API and generating TwiML.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Code Enhancement

carcruram opened this issue · comments

Issue Summary

Change the function time.time to datetime.datetime in the folder twilio/jwt/init.py

Code Snippet

#if ttl:
              expiration_time = datetime.datetime.utcnow() + datetime.timedelta(seconds=ttl)
         else:
              expiration_time = datetime.datetime.utcnow() + datetime.timedelta(seconds=self.ttl)

Hey @carcruram! we’ll add this to our internal backlog to be prioritized. +1s/reactions on this issue (and comments) and PRs will bump it higher up the backlog. Thanks!