mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:37:45 +00:00
LibJS: Use String::formatted() in various other places
This commit is contained in:
parent
2e2571743b
commit
123f98201e
7 changed files with 23 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue