bear / parsedatetime

Parse human-readable date/time strings
Apache License 2.0
694 stars 105 forks source link

tzinfo flag doesn't appear to do anything #259

Open 6peterlu opened 3 years ago

6peterlu commented 3 years ago

I'm parsing as follows:

datetime_data, parse_status = cal.parseDT(incoming_msg, tzinfo=pytz.utc)

but the resulting datetime_data is based on the timezone of my local machine instead of UTC. What's the correct way to do this?

Thanks a bunch!