twilio-java icon indicating copy to clipboard operation
twilio-java copied to clipboard

chore: correcting dateTime format as per RFC3339 format

Open tiwarishubham635 opened this issue 1 year ago • 1 comments

Fixes

The SDK currently formats date-time query parameters (this one for example) with this format: yyyy-MM-dd'T'HH:mm:ss However, the Open API Specification suggests that a date-time parameter should include the timezone at the end. For example, if the timezone is UTC it should include a Z at the end. For example: 1985-04-12T23:20:50Z

This PR adds the support for this dateTime format

Checklist

  • [x] I acknowledge that all my contributions will be made under the project's license
  • [x] I have made a material change to the repo (functionality, testing, spelling, grammar)
  • [x] I have read the Contribution Guidelines and my PR follows them
  • [x] I have titled the PR appropriately
  • [x] I have updated my branch with the main branch
  • [x] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added the necessary documentation about the functionality in the appropriate .md file
  • [ ] I have added inline documentation to the code I modified

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.

tiwarishubham635 avatar Jun 04 '24 11:06 tiwarishubham635