diff options
author | Ben Morrison <ben@gbmor.dev> | 2019-09-04 13:59:00 -0400 |
---|---|---|
committer | Ben Morrison <ben@gbmor.dev> | 2019-09-04 13:59:00 -0400 |
commit | 5d32c8ccd1b2d544771363ef419d89ec4f56c924 (patch) | |
tree | 2b5d3340d1d294100ea3b390b1bba0dda13ef1df /src/ed.rs | |
parent | 19ae5c3b7d998d7a4406e45180e8cb16084ddf88 (diff) | |
download | clinte-5d32c8ccd1b2d544771363ef419d89ec4f56c924.tar.gz |
using rfc3339 for temp file name
Diffstat (limited to 'src/ed.rs')
-rw-r--r-- | src/ed.rs | 2 |
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), |