chore: make datetime pure

This commit is contained in:
Konstantin Fickel 2026-04-07 13:13:55 +02:00
parent 2ab2b6a52b
commit e8dc2013bc
Signed by: kfickel
GPG key ID: A793722F9933C1A5
2 changed files with 43 additions and 23 deletions

View file

@ -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(&timesheets, &timesheet_config)?;