fix logging to file

This commit is contained in:
jb-alvarado 2023-09-06 08:13:29 +02:00
parent 0c51f8303c
commit b6ffcd9d45
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ pub fn init_logging(
};
};
if app_config.log_to_file && !app_config.path.exists() {
if app_config.log_to_file && app_config.path.exists() {
let file_config = log_config
.clone()
.set_time_format_custom(format_description!(

View File

@ -328,7 +328,7 @@ pub fn get_date(seek: bool, start: f64, get_next: bool) -> String {
return (local - Duration::days(1)).format("%Y-%m-%d").to_string();
}
if start == 0.0 && get_next && get_sec() > 86398.0 {
if start == 0.0 && get_next && get_sec() > 86397.9 {
return (local + Duration::days(1)).format("%Y-%m-%d").to_string();
}