Skip to content

@DateTimeFormat(iso = ISO.DATE_TIME) should use optimized formatter for LocalDateTime [SPR-14958] #19525

Closed
@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-14958 and commented

It looks like the usage of DateTimeFormatter.ISO_DATE_TIME to format LocalDateTime instances is significantly slower than a usage of DateTimeFormatter.ISO_LOCAL_DATE_TIME (see this benchmark for details).

It would be cool if we could switch to that DateTimeFormatter in case a LocalDateTime instance is to be converted.


Affects: 4.3.4, 5.0 M3

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions