Selaa lähdekoodia

LibWeb: Serialize Time according to spec

stelar7 2 vuotta sitten
vanhempi
commit
e72b7c5de2
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      Userland/Libraries/LibWeb/CSS/Time.cpp

+ 1 - 1
Userland/Libraries/LibWeb/CSS/Time.cpp

@@ -33,7 +33,7 @@ Time Time::percentage_of(Percentage const& percentage) const
 
 
 ErrorOr<String> Time::to_string() 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
 float Time::to_seconds() const