alibaba / alibaba/fastjson2

[QUESTION]关于时间序列化几个问题

Open
#3,199 2 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
Java
Stars
4.4k
Forks
613
Avg merge
1d 22h
Merged PRs (30d)
6

Description

版本2.0.53
1. 这个版本时间默认带了格式, 如何配置回时间戳形式? 如接口之间交换数据,因为不需要人可识别, 所以没有格式化需求
2. 新版时间格式带了毫秒值, 如果自定义了全局dateFormat=yyyy-MM-dd HH:mm:ss 又导致localdate,localtime全按照这个格式了. 是否可以对 datetime, date, time 三种时间配置全局格式?

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by reviewing the existing time serialization configuration and related tests, then determine how timestamp output and separate datetime, date, and time formats are currently handled. Done should include a clear answer or documented, tested configuration behavior for the requested cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.