improved handling of iso8601