about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-09-04 13:59:00 -0400
committerBen Morrison <ben@gbmor.dev>2019-09-04 13:59:00 -0400
commit5d32c8ccd1b2d544771363ef419d89ec4f56c924 (patch)
tree2b5d3340d1d294100ea3b390b1bba0dda13ef1df
parent19ae5c3b7d998d7a4406e45180e8cb16084ddf88 (diff)
downloadclinte-5d32c8ccd1b2d544771363ef419d89ec4f56c924.tar.gz
using rfc3339 for temp file name
-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),