-
Notifications
You must be signed in to change notification settings - Fork 6
chore: bump year to {{ current_year() }}
#69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| mod guides; | ||
| mod template_util; | ||
|
|
||
| use std::time::Duration; | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| use chrono::Datelike; | ||
|
|
||
| pub(crate) fn current_year() -> i32 { | ||
| chrono::Utc::now().year() | ||
| } | ||
m4tx marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -112,7 +112,7 @@ <h5 class="offcanvas-title" id="cot-offcanvas-navbar-label">Cot</h5> | |||||
| <a href="/" class="d-block mb-3 link-body-emphasis text-decoration-none" title="Go to Cot homepage"> | ||||||
| <img src="{{ base_context.static_files.url_for("static/images/cot-dark.svg")? }}" alt="" width="80" height="64" class="mx-lg-auto d-block"> | ||||||
| </a> | ||||||
| <p class="text-body-secondary">© 2024-2025 Cot contributors</p> | ||||||
| <p class="text-body-secondary">© 2024-{{ template_util::current_year() }} Cot contributors</p> | ||||||
|
||||||
| <p class="text-body-secondary">© 2024-{{ template_util::current_year() }} Cot contributors</p> | |
| <p class="text-body-secondary">© 2024-{{ current_year }} Cot contributors</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
where is this hallucination even coming from
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an inconsistency in approach: LICENSE-MIT uses a hardcoded year (2026) while the template footer uses a dynamic year function. Consider either:
For most projects, keeping LICENSE files static is the standard approach, in which case you may want to reconsider whether the template footer needs to be dynamic.