mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 00:25:12 +00:00
LibJS: Parse dates like "1 Jan 2001 00:00:00 GMT"
This commit is contained in:
@@ -195,6 +195,7 @@ static double parse_date_string(VM& vm, StringView date_string)
|
||||
"%Y-%m-%d%t%H:%M:%S%z"sv, // "2024-12-30 03:00:00+0000"
|
||||
"%Y-%m-%d%t%H:%M:%S%X"sv, // "2025-01-13 00:00:00.000"
|
||||
"%Y-%m-%eT%T%z"sv, // "2021-04-21T15:00:00+0000"
|
||||
"%d%t%b%t%Y%t%T%t%Z"sv, // "1 Jan 2001 00:00:00 GMT"
|
||||
};
|
||||
|
||||
for (auto const& format : extra_formats) {
|
||||
|
||||
Reference in New Issue
Block a user