oapi-codegen icon indicating copy to clipboard operation
oapi-codegen copied to clipboard

Added function to set date format

Open IvanProdaiko94 opened this issue 2 years ago • 4 comments

I would like to have a way to define the date format from my own code.

IvanProdaiko94 avatar Aug 08 '23 15:08 IvanProdaiko94

This looks like what I needed! Without that I must to write custom UnmarshalJSON for correct date converting.

alexwestside avatar Aug 09 '23 09:08 alexwestside

DateFormat is a public global variable that can be set even without that function.

jxsl13 avatar Aug 09 '23 10:08 jxsl13

@jxsl13 it was constant before

IvanProdaiko94 avatar Aug 09 '23 15:08 IvanProdaiko94

my bad

jxsl13 avatar Aug 09 '23 17:08 jxsl13