Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

日期解析问题 #1901

Closed
tonydzt opened this issue Jun 12, 2018 · 1 comment
Closed

日期解析问题 #1901

tonydzt opened this issue Jun 12, 2018 · 1 comment
Labels
Milestone

Comments

@tonydzt
Copy link

tonydzt commented Jun 12, 2018

我想要解析带有“Thu Mar 22 08:58:37 +0000 2018”这种Date输出格式的日期属性的类,但是解析异常,我配置的属性注解如下:

@JSONField(format = "EEE MMM dd HH:mm:ss zzz yyyy")
private Date time;

这么做不能解析成功,但我试着用这种格式生成日期json,结果是:“星期二 六月 12 13:04:10 +0000 2018”

为什么会是这样,fastjson现在支持这种格式的解析吗

@wenshao wenshao modified the milestones: 1.2.50, 1.2.49 Aug 4, 2018
@wenshao wenshao added the bug label Aug 4, 2018
@wenshao
Copy link
Member

wenshao commented Aug 5, 2018

https://github.com/alibaba/fastjson/releases/tag/1.2.49
问题已修复,请用新版本

@wenshao wenshao closed this as completed Aug 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants