Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does InstantConverter support UTC offset values? #21

Open
coferc opened this issue Sep 29, 2017 · 2 comments
Open

Does InstantConverter support UTC offset values? #21

coferc opened this issue Sep 29, 2017 · 2 comments
Labels

Comments

@coferc
Copy link

coferc commented Sep 29, 2017

Can I deserialize a value using InstantConverter that includes a UTC offset like, "2017-04-22T00:00:00-04:00", or does the string have to be in UTC? I think the answer is that it doesn't support UTC offset, because I tried and it didn't work, but that could be user error.
Thanks!

@gkopff
Copy link
Owner

gkopff commented Oct 1, 2017

To cope with an offset, you'll need to use an OffsetDateTime and the OffsetDateTimeConverter.

You are right that the InstantConverter cannot cope with an offset.

@gkopff gkopff added the question label Oct 1, 2017
@gkopff
Copy link
Owner

gkopff commented Oct 1, 2017

Pull requests welcome. :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants