You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The recently added duration filter produces wrong results. For example, if the input is "PT9099S", instead of giving the result "2:31:39", it produces "2:00:9099"
In all my tests, the "minutes" part is 00, and the "seconds" part contains the total number of seconds.
Given the string "PT9099S", which represents 9099 seconds (i.e.: 2 hours, 31 minutes and 39 seconds), we could think that we can pass the string to dayjs.duration() (it understands ISO format) and then ask for the hours, minutes and seconds parts. However this produces puzzling results
The same happens if we initialize the duration using a json with fiedls for years, months, days, hours, minutes and seconds, and put 9099 in seconds and 0 in the others.
If, however, we create the duration object passing it an integer that will be interpreted as a number of miliseconds, then it works as expected:
Version:
Describe the bug
The recently added
duration
filter produces wrong results. For example, if the input is "PT9099S", instead of giving the result "2:31:39", it produces "2:00:9099"In all my tests, the "minutes" part is 00, and the "seconds" part contains the total number of seconds.
URLs where the bug occurs
Tested with youtube videos
To reproduce
Steps to reproduce the behavior:
Use the test template provided below, and:
Test template
The text was updated successfully, but these errors were encountered: