>>> datetime.datetime.now().utcoffset() is None
True
The function nowreally returns a naive object. It contains the field values for the day and time, which are filled in accordance with the locale settings. That is why a separate one is provided utcnow; which always gives you UTC field values (although it is still naive).
source
share