melib/datetime: fix test compile failure
parent
2f47f1eebd
commit
08af46f5ef
|
@ -34,7 +34,7 @@
|
|||
//! assert_eq!(timestamp, 1578509043);
|
||||
//!
|
||||
//! // Convert timestamp back to string
|
||||
//! let s = timestamp_to_string(timestamp, Some("%Y-%m-%d"));
|
||||
//! let s = timestamp_to_string(timestamp, Some("%Y-%m-%d"), true);
|
||||
//! assert_eq!(s, "2020-01-08");
|
||||
//! ```
|
||||
use crate::error::{Result, ResultIntoMeliError};
|
||||
|
|
|
@ -393,6 +393,7 @@ impl Component for SVGScreenshotFilter {
|
|||
let mut filename = melib::datetime::timestamp_to_string(
|
||||
melib::datetime::now(),
|
||||
Some("meli Screenshot - %e %h %Y %H:%M:%S.svg"),
|
||||
true,
|
||||
);
|
||||
while std::path::Path::new(&filename).exists() {
|
||||
filename.pop();
|
||||
|
|
Loading…
Reference in New Issue