Created
December 17, 2016 17:35
-
-
Save jf-parent/78197562de96432b8df1a18cc3f33cf6 to your computer and use it in GitHub Desktop.
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
from dateutil.parser import parse | |
import pytz | |
datetime_with_timezone = parse(data.get('datetime')).replace(tzinfo=pytz.utc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment