about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/ed.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ed.rs b/src/ed.rs
index d51f5b0..059e411 100644
--- a/src/ed.rs
+++ b/src/ed.rs
@@ -25,7 +25,7 @@ lazy_static! {
 }
 
 fn create_tmp_file<'a>() -> Result<String, &'a str> {
-    let the_time = Utc::now().to_rfc2822();
+    let the_time = Utc::now().to_rfc3339();
     let file_name = format!("/tmp/clinte_ed_{}_{}", *user::NAME, the_time);
     match fs::write(&file_name, "") {
         Ok(_) => Ok(file_name),