Skip to content

Instantly share code, notes, and snippets.

@marklap
Created February 9, 2015 20:47
Show Gist options
  • Save marklap/63a6ae8da4993da3826a to your computer and use it in GitHub Desktop.
Save marklap/63a6ae8da4993da3826a to your computer and use it in GitHub Desktop.
Get `now` datetime with current timezone
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