1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

LibJS: Implement Date.prototype.toISOString()

This commit is contained in:
Nico Weber 2020-08-20 16:29:27 -04:00 committed by Andreas Kling
parent 1eac1b360b
commit a6b68451dc
5 changed files with 55 additions and 0 deletions

View file

@ -52,6 +52,8 @@ public:
return String::format("%s %s", date_string().characters(), time_string().characters());
}
String iso_date_string() const;
// FIXME: One day, implement real locale support. Until then, everyone gets what the Clock MenuApplet displays.
String locale_date_string() const { return m_datetime.to_string("%Y-%m-%d"); }
String locale_string() const { return m_datetime.to_string(); }