link:
https://py.checkio.org/en/mission/lightbulb-end-watching/
I've written the code which passes the self-testing.
However, it shows failed in the check solution with this message:
Fail:sum_light([
new Date(2015, 1, 12, 10, 0, 0),
new Date(2015, 1, 12, 10, 10, 10),
new Date(2015, 1, 12, 11, 0, 0),
new Date(2015, 1, 12, 11, 10, 10)
])
I tried to copy the best solution, but it still shows the same failure.
As I know, the 'new Date' is from js.
So is it a bug? anyway to fix it?
Created at: 2022/05/14 15:56; Updated at: 2022/05/19 07:11
The question is resolved.