date format updated

This commit is contained in:
Elena Bobkova 2018-11-29 12:54:47 +03:00
parent 06c2d329c6
commit e16f6893cd
1 changed files with 1 additions and 1 deletions

View File

@ -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)