-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[core] Duration toIsoString() not following ISO Standard #9906
Comments
Yeah @irborrero's absolutely right... I think I made a bug when I coded this up. The |
We used to render all periods as `PT...`, but the correct formatting is `P(days)T(hms)`. Fixes #9906.
We used to render all periods as `PT...`, but the correct formatting is `P(days)T(hms)`. Fixes #9906. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Thanks a lot for fixing this! I am quite new to CDK dev process, are you going to merge this into the older CDK versions as well? |
No, we don't modify existing released versions. You will have to upgrade your CDK version to one that contains the change (in this case, |
Reproduction Steps
What did you expect to happen?
What actually happened?
Environment
Other
Link to docu
Explanation of my use case
I am creating a Dashboard for my service using CDK. I would like the dashboard to have a time range like:
I know I can do this by specifying:
start: "-P14D"
However I would like to use Duration instead of a string. Something like:
This is not working because duration.toIsoString() prints PT14D and not P14D .
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: