fix unexpected format of date string