aws-sdk-java icon indicating copy to clipboard operation
aws-sdk-java copied to clipboard

Datetime ISO8601 not respected by doParseISO8601Date

Open glynd opened this issue 9 years ago • 2 comments

The current com.amazonaws.util.DateUtils method 'doParseISO8601Date' does not correctly parse ISO 8601 date-time strings without a millisecond field but with a timezone offset

Fails with: 2017-11-13T15:09:59+03:00 Succeeds with: 2017-11-13T15:09:59.0+03:00

It will only cope with date-time strings that have a 'Z' timezone designation without milliseconds

It has a special case for some spot instance servers? Where '+0000' is mapped directly to a 'Z' timezone designator

glynd avatar Nov 13 '17 14:11 glynd

I am able to reproduce the issue. I need to confirm with the team if this is a known issue and the right path forward. We are currently overwhelmed due to AWS ReInvent. I will get back to you when I have more updates. Thank you.

varunnvs92 avatar Nov 17 '17 21:11 varunnvs92

This is a very old issue that is probably not getting as much attention as it deserves. We encourage you to check if this is still an issue in the latest release and if you find that this is still a problem, please feel free to provide a comment or open a new issue.

github-actions[bot] avatar Jan 23 '23 18:01 github-actions[bot]