The code currently uses python's time library. This is to gain access to the strptime function, which converts a string into a datetime object. However, time is very limited and its strptime function cannot handle offsets (e.g. %z in datetime.strptime). This offset feature is needed to handle time strings. Switch the code to use datetime and not time.
Reported by: Jon Robbins (http://jrobb.org)