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()
|
||||
.with_timezone(&Local);
|
||||
let age = now - ts;
|
||||
let weekday = now.weekday();
|
||||
let datetime = if age < Duration::minutes(1) {
|
||||
format!("{} min. ago", age.num_seconds())
|
||||
} else if age < Duration::hours(1) {
|
||||
@ -503,7 +502,6 @@ fn human_age(timestamp: i64) -> String {
|
||||
} else {
|
||||
ts.format("%b %e %H:%M").to_string()
|
||||
};
|
||||
info!("dateime {datetime} TZ: {}", ts.offset());
|
||||
datetime
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user