fixed bug that cut a string too short leading to wrong dates