Timothy Flynn
c0102aa818
LibJS: Support date strings of the form "Wed Apr 17 2019 23:08:53""
...
Seen on https://www.skaping.com/valloire/galibier .
2024-10-15 08:25:32 +02:00
rmg-x
179641a297
LibJS: Add extra date format "d B Y"
...
This allows date strings like "01 February 2013" to be parsed.
auth0.com also loads now because of this :^)
Add test for date parsing
2024-09-21 18:17:04 +02:00
Kevin Perdlich
a3472aef24
LibJS: Extend supported date string formats
2024-09-20 12:20:11 -04:00
Arhcout
b4d996680a
LibJS: Allow date format "YYYY-M-DD"
2024-09-15 12:24:39 -04:00
Timothy Flynn
921a9cef62
LibJS: Add "month day, year" support to Date.parse
...
Used on https://rauchg.com .
2024-09-08 18:25:05 +02:00
Kyle Lanmon
f757a7cfa8
LibJS: Support more weird date formats found on the web
2024-02-03 09:29:40 +01:00
Timothy Flynn
bf3fce1766
LibJS: Add Date.parse formats for the output of Date.prototype.to*String
...
We currently cannot parse the output of `toString` and `toUTCString`.
While the spec does not require such support, test262 expects it, and
all major engines support it.
2023-11-08 09:28:17 +01:00
Luke Wilde
78db4e683f
LibJS: Add "Month dd, yy hh:mm:ss" Date format
...
Required by Discord's Birthday page.
2023-05-22 06:07:05 +02:00
Hendiadyoin1
b76d3f287f
LibJS: Make yy{/,-}mm{/,-}dd hh:mm
test timezone independent
...
Otherwise this will fail in non UTC timezones.
2023-03-23 13:33:03 -04:00
Luke Wilde
f0d0459c3e
LibJS: Support the yy{/,-}mm{/,-}dd hh:mm format for Date
...
Required by a UK news website for loading a Piano configuration.
This is presumably configuration for piano.io Analytics.
2023-03-23 13:38:08 +01:00
Luke Wilde
ce39c907fd
LibJS: Support MM/DD/YYYY HH:MM <timezone-offset> format for Date
...
Required by Discord to determine if it should show Christmas themed
loading tips on the loading screen.
Fixes #16473 .
2022-12-13 21:42:28 +00:00
davidot
03c468fb7d
LibJS: Parse date strings like "9/17/2022"
2022-09-17 18:53:14 +02:00
Idan Horowitz
9098257668
LibJS: Reject -00000 as extended year in Date parsing
2022-04-30 21:36:27 +02:00
davidot
a61424a62b
LibJS: Be more lenient when parsing milliseconds for Date
...
Other engines don't give NaN if there is at least one digit after the
dot for milliseconds. We were much stricter and required exactly three
digits.
But there is real world usage of different amounts of digits such as
discord having three extra trailing zeros.
2022-03-09 14:18:59 +01:00
Timothy Flynn
643992904c
LibJS: Clip parsed IS0 8601 strings to +/- 8.64e15
2022-01-14 22:39:06 +01:00
Linus Groh
a647f0abf6
LibJS: Make parse_simplified_iso8601() use Optional<int> instead of -1
...
...for the non-success state. This fixes a crash when parsing dates with
the year -1, as we would assert successful parsing ("year != -1").
Mixing Optional and -1 seems worse and more complicated than just using
Optional for all the values, so I did that instead.
2021-07-10 19:51:07 +01:00
Andreas Kling
13d7c09125
Libraries: Move to Userland/Libraries/
2021-01-12 12:17:46 +01:00