-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
astimezone() cannot be applied to a naive datetime #982
Comments
astimezone() cannot be applied to a naive datetime python 2.6.8 |
HI. aws --version But aws cloudwatch get-metric-statistics --metric-name CPUUtilization --start-time 2014-11-04T00:00:00Z --end-time 2014-11-04T23:59:59Z --period 3600 --namespace AWS/EC2 --statistics Maximum --dimensions Name=InstanceId,Value=i-XXXXXX OK This issue timestamps need a 'Z' on the end for the options '--start-time' and '--end-time. |
Adding traceback from debug log for reference:
|
While we want to encourage users to provide the appropriate timezone info, this commit adds back the previous behavior, which was to serialize the request assuming the user meant UTC. I double checked, and in prior versions, we weren't sending any tzinfo at all, whereas now, we're at least explicitly specifying the UTC suffix if none is provided. Fixes aws/aws-cli#982
Issue is now fixed and will be available in the next release of the AWS CLI. Thanks everyone for reporting the issue. |
* release-1.6.3: (25 commits) Bumping version to 1.6.3 Update integration test Update changelog Add binary output issue to changelog Fix module docstring in scalarparse Update changelog [ci skip] Add customization to alter scalar parsing behavior Add 1012 to the CHANGELOG Update changelog with feature Update code with botocore changes Add read file in bytes using fileb:// Add #1007 to the changelog Update CloudTrail to use bucket location constraints Fix issue when error response is receieved for streaming output Add sigv4 issue to changelog Add #982 to the changelog Add get-bucket-location fix to changelog Add auth resign issue to changelog Update changelog Fix always return rc of 0 for ls ...
When I run the following command, I got error message: astimezone() cannot be applied to a naive datetime.
Version
aws-cli Version
The text was updated successfully, but these errors were encountered: