Python: How to get a value of datetime.today() that is "timezone aware"?
- by mindthief
Hi,
I am trying to subtract one date value from the value of datetime.today() to calculate how long ago something was. But it complains:
TypeError: can't subtract offset-naive and offset-aware datetimes
The value datetime.today() doesn't seem to be "timezone aware", while my other date value is. How do I get a value of datetime.today() that is…