fixing date parsing to work in iPhone