mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Serialize Time according to spec
This commit is contained in:
parent
b5ba479d65
commit
e72b7c5de2
Notes:
sideshowbarker
2024-07-17 04:09:56 +09:00
Author: https://github.com/stelar7
Commit: e72b7c5de2
Pull-request: https://github.com/SerenityOS/serenity/pull/19163
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ Time Time::percentage_of(Percentage const& percentage) const
|
|||
|
||||
ErrorOr<String> Time::to_string() const
|
||||
{
|
||||
return String::formatted("{}{}", m_value, unit_name());
|
||||
return String::formatted("{}s", to_seconds());
|
||||
}
|
||||
|
||||
float Time::to_seconds() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue