fix bug in datetime.strptime