Closed tek-kgong closed 2 years ago
Hi, Thanks for raising this! What do you think of this fix?
Looking good to me. Thanks for the quick response!
When will the fix be available?
No worries!
It's published now as version 3.0.0 https://www.npmjs.com/package/duration-fns
Currently, when we have a negative duration and call
duration.toString
, it returns a string that is not compatible with certain frameworks like .NET.For example:
.NET expects
-PT300M
.I am wondering if it is possible to have an option to configure the output of
duration.toString
.Here is a link to another bug report that is related that includes documentation from ISO specification