fix date handling for ISO output (#235)