chore: make datetime pure
This commit is contained in:
parent
2ab2b6a52b
commit
e8dc2013bc
2 changed files with 43 additions and 23 deletions
|
|
@ -4,6 +4,7 @@ use std::path::Path;
|
|||
|
||||
use chrono::Datelike;
|
||||
use chrono::NaiveDate;
|
||||
use chrono::Utc;
|
||||
use walkdir::WalkDir;
|
||||
|
||||
use crate::config::Settings;
|
||||
|
|
@ -339,7 +340,7 @@ pub fn run(decimal: bool, debug: bool) -> Result<(), StreamdError> {
|
|||
|
||||
// Load all markdown files and extract timesheets
|
||||
let all_shards = load_all_shards(base_folder)?;
|
||||
let timesheets = extract_timesheets(&all_shards)?;
|
||||
let timesheets = extract_timesheets(&all_shards, Utc::now())?;
|
||||
|
||||
// Generate the report
|
||||
let report = generate_report(×heets, ×heet_config)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue