mongodb-atlas-cli icon indicating copy to clipboard operation
mongodb-atlas-cli copied to clipboard

CLOUDP-238932: Validate maxDate and minDate before running command

Open blva opened this issue 1 year ago • 0 comments
trafficstars

Proposed changes

Jira ticket: CLOUDP-238932

closes #2793

❯ atlasdev  events projects list --output json --projectId  5efda6aea3f2ed2e7dd6ce05 --maxDate 2024-03-18T15:00:03+00:00Z --minDate 2024-03-18T14:40:03+00:00Z --limit 1 --page 1
Error: invalid maxDate format, parsing time "2024-03-18T15:00:03+00:00Z" as "2006-01-02T15:04:05-0700": cannot parse "+00:00Z" as "-0700", supported timestamp formats examples: 2006-01-02T15:04:05Z07:00, 2006-01-02T15:04:05-0700

Checklist

  • [x] I have signed the MongoDB CLA
  • [ ] I have added tests that prove my fix is effective or that my feature works
  • [ ] I have added any necessary documentation in document requirements section listed in CONTRIBUTING.md (if appropriate)
  • [ ] I have addressed the @mongodb/docs-cloud-team comments (if appropriate)
  • [ ] I have updated test/README.md (if an e2e test has been added)
  • [ ] I have run make fmt and formatted my code

Further comments

blva avatar Mar 21 '24 17:03 blva