Why LocalDateTime codec is actually OffsetDateTime in UTC?

Why it’s shadily converts LocalDateTime to OffsetDateTime, so that adds Z suffix? Isn’t it supposed to be string.map(LocalDateTime.parse(_))(DateTimeFormatter.ISO_LOCAL_DATE_TIME.format).schema(Schema.schemaForLocalDateTime)?
I understand it’d break compatibility, but what’s the logic here?

There’s a comment on the test case that explains it:

// Because there is no separate standard for local date time, we encode it WITH timezone set to "Z"
// https://swagger.io/docs/specification/data-models/data-types/#string

Doesn’t mean it’s the best choice, though :slight_smile: