mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
LibJS: Parse dates like "2025-01-02 14:00:00+0000"
This was getting spammed in the console by a website in the wild.
This commit is contained in:
parent
57f776fcb7
commit
c804d08d34
Notes:
github-actions[bot]
2025-01-03 22:44:04 +00:00
Author: https://github.com/shannonbooth
Commit: c804d08d34
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3112
2 changed files with 3 additions and 1 deletions
|
@ -42,6 +42,7 @@ test("basic functionality", () => {
|
|||
expect(Date.parse("Tuesday, October 29, 2024, 18:00 UTC")).toBe(1730224800000);
|
||||
expect(Date.parse("November 19 2024 00:00:00 +0900")).toBe(1731942000000);
|
||||
expect(Date.parse("Wed Nov 20 2024")).toBe(1732082400000);
|
||||
expect(Date.parse("2025-01-02 14:00:00+0000")).toBe(1735826400000);
|
||||
|
||||
// FIXME: Create a scoped time zone helper when bytecode supports the `using` declaration.
|
||||
setTimeZone(originalTimeZone);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue