fix: bug in delta output
wrongly used buffer to output delta. Changed to use local.now() time instead.
This commit is contained in:
parent
9ac3593b04
commit
c76f17a51e
1 changed files with 4 additions and 1 deletions
|
@ -14,7 +14,10 @@ fn main() -> io::Result<()> {
|
||||||
|
|
||||||
let local: DateTime<Local> = Local::now();
|
let local: DateTime<Local> = Local::now();
|
||||||
|
|
||||||
println!("delta: \t\t{time_only} -> {buffer}");
|
println!(
|
||||||
|
"delta: \t\t{time_only} -> {}",
|
||||||
|
local.time().format("%H:%M:%S").to_string()
|
||||||
|
);
|
||||||
|
|
||||||
let dt = NaiveTime::signed_duration_since(local.time(), time_only);
|
let dt = NaiveTime::signed_duration_since(local.time(), time_only);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue