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

can not cast to Date, value : 2017-06-29T08:06:30.000+05:30 #1298

Closed
slbfs opened this issue Jun 29, 2017 · 2 comments
Closed

can not cast to Date, value : 2017-06-29T08:06:30.000+05:30 #1298

slbfs opened this issue Jun 29, 2017 · 2 comments
Labels
Milestone

Comments

@slbfs
Copy link

slbfs commented Jun 29, 2017

使用北京时区 +08:00 转换没有问题,切换时区后,转换出现异常;
com.alibaba.fastjson.JSONException: can not cast to Date, value : 2017-06-29T08:06:30.000+05:30
at com.alibaba.fastjson.util.TypeUtils.castToDate(TypeUtils.java:327)
at com.alibaba.fastjson.JSONObject.getDate(JSONObject.java:286)

@kimmking
Copy link
Contributor

能否提交一个测试代码

@wenshao wenshao added the bug label Jun 30, 2017
wenshao added a commit that referenced this issue Jul 1, 2017
@wenshao wenshao added this to the 1.2.35 milestone Jul 15, 2017
@wenshao
Copy link
Member

wenshao commented Jul 16, 2017

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

@wenshao wenshao closed this as completed Jul 16, 2017
wenshao added a commit that referenced this issue Jul 17, 2019
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

3 participants