use time.strptime instead of parsing time ourselves