google / project-OCEAN

Project OCEAN is an open science collaboration focused on understanding the open source ecosystems creating datasets that enable research and forming a clear understanding of the state of open source communities.
https://vermontcomplexsystems.org/partner/OCEAN/
Apache License 2.0
49 stars 19 forks source link

Fix Python BQ script date timezone hanlding #33

Closed nyghtowl closed 3 years ago

nyghtowl commented 3 years ago

Expected Behavior

parse_datestring function will handle all timezones despite format and parse them correctly

Actual Behavior

parse_datestring only handling timezones if offset number provided. It is missing information when the timezone letters or words are provided like:

Wed, 25 Oct 2006 19:21:24 GMT

Test output should be 2006-10-25 21:21:24