gitlab4j-api icon indicating copy to clipboard operation
gitlab4j-api copied to clipboard

Add @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss+HHmm") to Date in EventCommit

Open aifuqiang02 opened this issue 1 year ago • 2 comments

Google translation:

As the title says, add @jsonformat(pattern = "yyyy-MM-dd'T'HH:mm:ss+HHmm") to Date in EventCommit class

The project uses yyyy-MM-dd HH:mm:ss by default, and an error will be reported when receiving an object.


original message:

如题EventCommit 类中的Date 增加@JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss+HHmm") 项目中默认使用yyyy-MM-dd HH:mm:ss , 接收对象时会报错。

aifuqiang02 avatar Aug 14 '24 10:08 aifuqiang02

@bdgould is working on this as part of https://github.com/gitlab4j/gitlab4j-api/pull/1198

jmini avatar Dec 24 '24 14:12 jmini

Also related: with https://github.com/gitlab4j/gitlab4j-api/pull/1223 we have tried to be more consistent on the Date types that are in the format yyyy-MM-dd

jmini avatar Mar 18 '25 07:03 jmini