From 5d32c8ccd1b2d544771363ef419d89ec4f56c924 Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Wed, 4 Sep 2019 13:59:00 -0400 Subject: using rfc3339 for temp file name --- src/ed.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { - 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), -- cgit 1.4.1-2-gfad0