]> git.kaiwu.me - quickjs.git/commit
Improve Date.parse
authorCharlie Gordon <github@chqrlie.org>
Sun, 3 Mar 2024 01:59:08 +0000 (02:59 +0100)
committerCharlie Gordon <github@chqrlie.org>
Sun, 3 Mar 2024 01:59:08 +0000 (02:59 +0100)
commit35b7b3c3796d41d8a6f9ad81f4293308e0d83777
treeaec036915ea84ab3e3b1e3f208a9520f5b620470
parent8d64731eb892ddf8ea81d4050e8d9075aa4ee954
Improve Date.parse

- accept many more alternative date/time formats
- add test cases in tests/test_builtin.js
- match month and timezone names case insensitively
- accept AM and PM markers
- recognize US timezone names
- skip parenthesized stuff
- fix almost all v8 test cases
quickjs.c
tests/test_builtin.js