fixed issue with date parsing/conversion