timstaley / voevent-parse

VOEvent parsing and manipulation routines built on lxml.objectify.
http://voevent-parse.readthedocs.org
BSD 2-Clause "Simplified" License
11 stars 9 forks source link

Enforce timezone aware datetimes / UTC conversion. #3

Closed timstaley closed 7 years ago

timstaley commented 9 years ago

Currently, we assume timezone-naive datetimes throughout voevent-parse, with the implicit assumption that any datetimes passed in will be at UTC timezone. This is kind of OK, but a little error-prone - it would probably be better to do some timezone checks, and e.g. in the convenience function to extract the timestamp using the iso8601 module, which automatically assigns the timezone information.