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
>newDate("2024-7-24")2024-07-23T22:00:00.000Z// <- probably not what you want>newDate("2024-7-24 10:00")2024-07-24T08:00:00.000Z>newDate("2024-07-24")2024-07-24T00:00:00.000Z
Using SpiderMonkey:
>newDate("2024-7-24")
Date WedJul24202402:00:00GMT+0200(CentralEuropeanSummerTime)>newDate("2024-7-24 10:00")
Date WedJul24202410:00:00GMT+0200(CentralEuropeanSummerTime)>newDate("2024-07-24")
Date WedJul24202402:00:00GMT+0200(CentralEuropeanSummerTime)
Since YYYY-M-DD is not a valid ISO 8601 date, the behaviour is probably undefined in any spec but I've seen it in the wild.
With Ladybird's sister project, also named Ladybird, I saw yesterday on youtube.com, the following error log:
10309.331 WebContent(23165): Unable to parse date string: "2024-7-24"
Log from Ladybird yesterday (2024-09-13)
Today I checked with Serenity's Ladybird and did not see the same error. But I assume the date is dynamic on youtube.com.
Build fe8a64d can not parse dates, where the month is without a leading zero - unless there is a time part.
Using
/Build/lagom/bin/js
:Using V8:
Using SpiderMonkey:
Since YYYY-M-DD is not a valid ISO 8601 date, the behaviour is probably undefined in any spec but I've seen it in the wild.
With Ladybird's sister project, also named Ladybird, I saw yesterday on youtube.com, the following error log:
Log from Ladybird yesterday (2024-09-13)
Today I checked with Serenity's Ladybird and did not see the same error. But I assume the date is dynamic on youtube.com.
Related: #19030 LadybirdBrowser/ladybird#1395
The text was updated successfully, but these errors were encountered: