Skip to content

[QUESTION]在fastjson1升级到fastjson2过程中出现了时间类型不一致如何去适配 #4025

@a020606

Description

@a020606

在fastjson1中,date时间类型的值在toJSONstring序列化后为时间戳格式,localdatetime序列化为带T的年月日时分秒,但是在升级到fastjson2.0.54的时候,date和localdatetime变成了一致,都是不带T的年月日时分秒,如何让其与fastjson1保持一致呢

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions