diff --git a/KotlinServer/blocks/class/constructor-fields-info.twig b/KotlinServer/blocks/class/constructor-fields-info.twig index 9a8df57..9ba9803 100644 --- a/KotlinServer/blocks/class/constructor-fields-info.twig +++ b/KotlinServer/blocks/class/constructor-fields-info.twig @@ -4,6 +4,9 @@ {%- if field.type.type.baseTypeName == "DateTime" %} @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "{{ utils.getDateFormat(field) }}", timezone = "utc") {%- endif %} + {%- if field.type.type.baseTypeName == "Date" %} + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "{{ utils.getDateFormat(field) }}") + {%- endif %} {%- if field.nullable %} @JsonInclude(JsonInclude.Include.ALWAYS) {%- elseif field.optional %}