google / google/gson

Default Deserialization Strategy for Dates

Open
#650 21 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
24.2k
Forks
4.5k
Avg merge
6d 4h
Merged PRs (30d)
12

Description

Currently an exception is thrown when the date is specified in milliseconds. It would be great if gson would assume that this is the default, or would at least provide a simple builder option for it. More details here:

http://stackoverflow.com/questions/30652314/gson-datetypeexception-when-converting-date-in-typed-in-milliseconds/30653568#30653568

Cheers,
- Ole

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.