AWSDateTime doesn't parse ISO 8601 format, is it bug ?
"2019-04-09T23:25:27+09:00" is valid ISO 8601 datetime notation certainly.
"2019-04-09T23:25:27+0900" (colon-less timezone) is also valid I think (https://en.wikipedia.org/wiki/ISO_8601 says so, but it is just my conjecture because I don't have ISO 8601 cannonical specification pdf https://www.iso.org/iso-8601-date-and-time-format.html.)
AWSDateTime accepts former, but denied latter.
I think this is bug because https://docs.aws.amazon.com/appsync/latest/devguide/scalars.html#awsdatetime says:
The AWSDateTime scalar type represents a valid extended ISO 8601 DateTime string.
How to reproduce
- Setup AppSync with Dynamodb backend
- Use AWSDateTime as part of GraphQL type
- Insert a row with value "2019-04-09T23:25:27+0900" for AWSDateTime in dynamodb console
- Query in AppSync console to get the row
Error happens like invalid row value
I haven't checked AWSTime but It may have same problem.
Thanks for the feedback. At this time, AWS AppSync requires the colon in the timezone. Per our documentation, "...the time zone offset must either be Z (representing the UTC time zone) or be in the format ±hh:mm:ss" (https://docs.aws.amazon.com/appsync/latest/devguide/scalars.html#awsdatetime).
I'll add a task to our backlog to see if we can relax this requirement to support timezones without colons. Unfortunately, I cannot provide an ETA on if/when this can be implemented.
AWS S3 select_object_content TIMESTAMP columnasked 5 months ago
AWS Signature Version 4 Credential Scope IssueAccepted Answerasked 5 months ago
Convert Red Hat .iso to AMIasked 3 months ago
IST time in AWS appsync pipeline resolver functionAccepted Answerasked 3 months ago
Formatting time as a unix timestampAccepted Answerasked a year ago
AWSDateTime doesn't parse ISO 8601 format, is it bug ?Accepted Answerasked 3 years ago
Boto3 Bug in response when creating a hosted zone in route53 with Pythonasked 5 months ago
Issues with CORS and time-shifted playbackasked 3 years ago
Incompatibility between State.EnteredTime and the DynamoDB .Net SDKasked 20 days ago
Why VPN is not in the HIPAA compliant services while Transit Gateway is?Accepted Answerasked 2 years ago