KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a field timestamp = models.DateTimeField(auto_now_add=True) in the db. I want to find the difference between that timestamp and datetime.now(). When I tried datetime.now() - timestamp, I get the error: can't subtract offset-naive and offset-aware datetimes How do I fix this?
Tags (comma-separated)
Save Edits
Cancel