From e16f6893cdff9d4406031a24d1832772be28e7aa Mon Sep 17 00:00:00 2001 From: Elena Bobkova Date: Thu, 29 Nov 2018 12:54:47 +0300 Subject: [PATCH] date format updated --- KotlinServer/blocks/class/constructor-fields-info.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/KotlinServer/blocks/class/constructor-fields-info.twig b/KotlinServer/blocks/class/constructor-fields-info.twig index b241fa6..2660e2a 100644 --- a/KotlinServer/blocks/class/constructor-fields-info.twig +++ b/KotlinServer/blocks/class/constructor-fields-info.twig @@ -2,7 +2,7 @@ {%- for field in fields %} {%- if field.type.type.baseTypeName == "DateTime" %} - @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ssX", timezone = "UTC") //TODO find a way to use 'ZZZ' from date format instead of 'X' + @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "{{ field.type.dateFormat }}") {%- endif %} {%- if field.nullable %} @JsonInclude(JsonInclude.Include.ALWAYS)