some firendly code changes for strptime