Squelch logging and remove unused variable.
This commit is contained in:
parent
6901c9fde9
commit
1d00bdb757
@ -489,7 +489,6 @@ fn human_age(timestamp: i64) -> String {
|
|||||||
.unwrap()
|
.unwrap()
|
||||||
.with_timezone(&Local);
|
.with_timezone(&Local);
|
||||||
let age = now - ts;
|
let age = now - ts;
|
||||||
let weekday = now.weekday();
|
|
||||||
let datetime = if age < Duration::minutes(1) {
|
let datetime = if age < Duration::minutes(1) {
|
||||||
format!("{} min. ago", age.num_seconds())
|
format!("{} min. ago", age.num_seconds())
|
||||||
} else if age < Duration::hours(1) {
|
} else if age < Duration::hours(1) {
|
||||||
@ -503,7 +502,6 @@ fn human_age(timestamp: i64) -> String {
|
|||||||
} else {
|
} else {
|
||||||
ts.format("%b %e %H:%M").to_string()
|
ts.format("%b %e %H:%M").to_string()
|
||||||
};
|
};
|
||||||
info!("dateime {datetime} TZ: {}", ts.offset());
|
|
||||||
datetime
|
datetime
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user