alibaba / alibaba/fastjson2

[BUG]@JSONField格式化LocalDateTime的BUG

Open
#2,701 0 comments 0 reactions 1 assignee Claimed by @yanxutao89 View on GitHub
bug
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

### 问题描述
使用@JSONType(serializeFeatures = {JSONWriter.Feature.WriteNonStringValueAsString, JSONWriter.Feature.WriteNullStringAsEmpty})
导致@JSONField(format = "yyyy-MM-dd HH:mm:ss") 格式化LocalDateTime失效
输出为:2024-06-17T01:31:19.148327800
期望为:2024-06-17 01:31:19
FastJson2版本为:2.0.49

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.