mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-07-18 01:14:14 +09:00
x
This commit is contained in:
parent
e8a0514f4f
commit
ee37ce225b
@ -215,7 +215,7 @@ class TestJSInterpreter(unittest.TestCase):
|
||||
self.assertAlmostEqual(JSInterpreter(
|
||||
'function f() { return new Date(%s); }'
|
||||
% ('2024, 5, 29, 2, 52, 12, 42',)).call_function('f'),
|
||||
1719625932042, places=0)
|
||||
1719625932042 + time.timezone * 1000, places=0)
|
||||
# no arg
|
||||
self.assertAlmostEqual(JSInterpreter(
|
||||
'function f() { return new Date() - 0; }').call_function('f'),
|
||||
|
Loading…
x
Reference in New Issue
Block a user