Draw method

This commit is contained in:
ChristianVisintin
2020-11-29 15:48:44 +01:00
parent c99d194162
commit a2492d1442
2 changed files with 79 additions and 9 deletions

View File

@@ -128,8 +128,6 @@ pub fn parse_remote_opt(
/// Format a `Instant` into a time string
pub fn time_to_str(time: SystemTime, fmt: &str) -> String {
let datetime: DateTime<Local> = time.into();
// Format the datetime how you want
let newdate = datetime.to_rfc3339_opts(SecondsFormat::Secs, true);
format!("{}", datetime.format(fmt))
}