Fixed the default days being shown being 366 instead of 365

master
Wynd 2025-09-05 01:04:42 +03:00
parent a748f78a94
commit 5f830049dd
4 changed files with 5 additions and 4 deletions

2
Cargo.lock generated
View File

@ -449,7 +449,7 @@ dependencies = [
[[package]]
name = "git-heatmap"
version = "1.4.0"
version = "1.4.1"
dependencies = [
"anyhow",
"chrono",

View File

@ -2,7 +2,7 @@ cargo-features = ["codegen-backend"]
[package]
name = "git-heatmap"
version = "1.4.0"
version = "1.4.1"
edition = "2024"
authors = ["Wynd <wyndftw@proton.me>"]
description = "A simple and customizable heatmap for git repos"

View File

@ -62,6 +62,6 @@ pub struct CliArgs {
}
fn get_since_date() -> String {
let date = Local::now() - Duration::days(365);
let date = Local::now() - Duration::days(364);
date.format("%Y-%m-%d").to_string()
}

View File

@ -6,6 +6,7 @@ pub struct Mailmap {
entries: Vec<MapEntry>,
}
#[allow(dead_code)]
#[derive(Debug)]
struct MapEntry {
new_name: Option<String>,
@ -58,4 +59,4 @@ impl Mailmap {
author
}
}
}