1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-09 09:34:57 +09:00

LibJS: Use String::formatted() in various other places

This commit is contained in:
Linus Groh 2020-10-04 15:18:52 +01:00 committed by Andreas Kling
parent 2e2571743b
commit 123f98201e
Notes: sideshowbarker 2024-07-19 02:03:54 +09:00
7 changed files with 23 additions and 22 deletions

View file

@ -68,7 +68,7 @@ public:
String time_string() const { return m_datetime.to_string("%T GMT+0000 (UTC)"); }
String string() const
{
return String::format("%s %s", date_string().characters(), time_string().characters());
return String::formatted("{} {}", date_string(), time_string());
}
String iso_date_string() const;