Closed surathi closed 8 months ago
This issue was moved to mcrowson/flask-session#1
It seems the mongodb python client returns an offset-aware datetime even though we put a offset-naive datetime in it.
This was fixed in 0.6.0 and will be entirely eliminated from 0.7.0 by using time-to-live in mongo.
I'm using session with MongoDB and it fails because of a datetime error. TypeError: can't compare offset-naive and offset-aware datetimes
I had recently faced a similar issue while checking expiry of a token. Handled it with using a different datetime format.
I believe we need to use any other format like: datetime.datetime.strptime(,"%d %b %Y %I:%M:%S %p")
Mongo Version : 3.4 Flask-Session==0.3.0