aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index 243951600e5..d6e5f49b433 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -1090,7 +1090,7 @@ impl<'a> DocumentMethods for JSRef<'a, Document> {
fn LastModified(self) -> DOMString {
match self.last_modified {
Some(ref t) => t.clone(),
- None => format!("{}", time::now().strftime("%m/%d/%Y %H:%M:%S").unwrap()),
+ None => time::now().strftime("%m/%d/%Y %H:%M:%S").unwrap().to_string(),
}
}