Created
February 9, 2015 20:47
-
-
Save marklap/63a6ae8da4993da3826a to your computer and use it in GitHub Desktop.
Get `now` datetime with current timezone
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
now = datetime.utcnow().replace(tzinfo=timezone.utc).astimezone(tz=None) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment