I want to store a datetime object with a localized UTC timezone. The method that stores the datetime object can be given a non-localized datetime (naive) object or an object
Here is a function wrapping up the top answer.
def tz_aware(dt): return dt.tzinfo is not None and dt.tzinfo.utcoffset(dt) is not None