lucky someone wrote very readable sourcecode so these fixes were a diddle
Merge pull request #29 from timini/master

Fixes edge case handling timezone-aware datetimes.