Python – Create current datetime object with timezone


Eureka!

Handling is quite a pain in . When you create or read a object, you need to make sure whether the you need should be aware or not.

Here is a simple example to create a with . The will determine the setting of the and apply it to your object.

View original post 18 more words